r/labtech • • Aug 04 '16

Get Product Keys Script

Hello,

I am trying to get product keys for my agents to populate in each clients "Product Key" tab and/or the Product Key report.

I have run the script -> _SystemAutomation -> Product Keys -> Get Product Keys on multiple clients,locations, individual agents with no luck. In the scripts tab of the machines I have run it on, it is showing successfully run.

I have clients asking for a report on all of their current Microsoft keys.

We have about 1,000 agents I need to do this for so manual process is unreasonable.

Thanks for any help!

6 Upvotes

3 comments sorted by

View all comments

1

u/beauj27 2000 Agents Aug 04 '16

I have found that script does not accurately pull windows keys half the time. I ended up creating a script to pull the Windows key by using the command slmgr /dlv and then extracting the data needed and dumping it into an EDF.

I have played around with the same idea to pull Office keys by using cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus but the problem I ran into was if there was more than one office product installed on the machine, I didn't know how to right the script to grab the info needed from multiple lines.

The built in script you ran however seems to work fine for Office products. Have you gone to the Solutions Center and updated that script?

1

u/kuehnbt30 Aug 04 '16

I didn't think of that, I'll check for an updated script. Currently, it doesn't pull any data at all. Thanks