Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2016-10-18
7
Medium Priority
?
68 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 56

Assisted Solution

by:McKnife
McKnife earned 668 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 98

Assisted Solution

by:John Hurst
John Hurst earned 668 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Assisted Solution

by:Ryno van Zyl
Ryno van Zyl earned 664 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 98

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 56

Accepted Solution

by:
McKnife earned 668 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 98

Expert Comment

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

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

604 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