Solved

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

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

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 92

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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to 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 92

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 92

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
apple id without bloatware 4 47
VB 6 error 5 in windows 10 but not in XP 7 42
Realtek Audio Driver problem 20 72
Windows 10 calender spelling 5 20
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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.

914 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

19 Experts available now in Live!

Get 1:1 Help Now