Solved

CMD Script to recover MS Office Product Keys across XP, 7, 8, 8.1 and 10.

Posted on 2016-10-18
7
33 Views
Last Modified: 2016-11-06
Good day.

Could someone perhaps help me with a cmd script to recover Microsoft Office Product Keys across different Windows Versions and Architectures?

I would like to add it to my script I'm currently working on that pulls general system information in regards to a clients PC. As a side note and to clear any confusion, this is in no way intended to be malicious in nature, and would serve as a very useful batch utility to have when working on clients machines in the event of a complete format. I am aware that there are several 3rd party tools available to do the job as well.
0
Comment
Question by:Ryno van Zyl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 7

Expert Comment

by:No More
ID: 41848183
Use third party inventory software
0
 
LVL 54

Assisted Solution

by:McKnife
McKnife earned 167 total points (awarded by participants)
ID: 41848217
Use http://www.nirsoft.net/utils/product_cd_key_viewer.html - at least for Office up to Office 2010, it work. I haven't tried newer ones.

It supports command line usage (batch).
0
 
LVL 94

Assisted Solution

by:John Hurst
John Hurst earned 167 total points (awarded by participants)
ID: 41848351
So far as I know, Office 2013, 2016 Click to Run subscriptions do not have product keys you can obtain this way.

I use Recover Keys and I have used Nirsoft and the Office keys only go to Office 2010.

The world is rapidly changing.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Assisted Solution

by:Ryno van Zyl
Ryno van Zyl earned 166 total points (awarded by participants)
ID: 41848421
I usually use third party software, but in this case I would like it all to be part of the batch file without any additional software installed. There are version specific methods, but it's only the keys for office 2016 and older that are relevant. 365 accounts aren't a worry
0
 
LVL 94

Expert Comment

by:John Hurst
ID: 41848439
See if you can find the key for the Office 2016. Some versions have no keys that you can get (or are of any value without a Microsoft Account)
0
 
LVL 54

Accepted Solution

by:
McKnife earned 167 total points (awarded by participants)
ID: 41848460
"but in this case I would like it all to be part of the batch file without any additional software installed." - I have not seen buil-in commands that would reveal the whole product key. nirsoft's tool is as close as you can get. No installation needed.
Steps:
1 place the downloaded tool on a network share
2 read about the command line parameters (right on the download page= my link)
3 create a share (\\server\officekeys) writable for everyone, readable only for admins
4 use a startscript that writes the key to \\server\officekeys\%computername%.txt

Easy peasy 5 mins of work.
0
 
LVL 94

Expert Comment

by:John Hurst
ID: 41876005
Solutions offered work and not all product keys can be found.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Optimized for private cloud infrastructures and datacenters, Nano Server is minimalistic, yet super-efficient, OS for services such as Hyper-V and Hyper-V cluster. Learn how you can easily deploy Nano Server and unlock its power!
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question