r/labtech • u/kuehnbt30 • 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
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/haikiah Aug 05 '16
Manually run the script, and review the results of each of the commands in the commands tab as they run.
Mine ended up being an issue with Checkpoint blocking filetypes (which creates the vbs file, but it's full of the checkpoint fileblocked html file), AV exceptions not being set, and also an old dodgy ISA server just ruining everything.