Solved

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

Posted on 2016-10-18
7
43 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 55

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 95

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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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 95

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 55

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 95

Expert Comment

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

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

690 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