Solved

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

Posted on 2016-10-18
7
26 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
7 Comments
 
LVL 6

Expert Comment

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

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 90

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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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 90

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 53

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 90

Expert Comment

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now