/build/static/layout/Breadcrumb_cap_w.png

Pull product keys for MS office and Adobe products

I was wondering what the best way to use the Kace 1000 appliance to pull product keys for MS office and Adobe products?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: scottlutz 13 years ago
Orange Senior Belt
0
http://www.appdeploy.com/messageboards/fb.asp?m=69497&key=produkey
Posted by: Johan_redsox 13 years ago
Senior Yellow Belt
0
Is there any way to pull Adobe product keys?
Posted by: scottlutz 13 years ago
Orange Senior Belt
0
Try this one: http://davehope.co.uk/projects/product-key-finder/
Posted by: dchristian 13 years ago
Red Belt
0
scottlutz,

Great find!!!

I just wiped this together in powershell.

$filer = type *.txt

function add-key([string]$namer,[String]$Value)
{
$pather = "HKLM:\system\TVG"
$Value = $Value.Replace(',',"_")
New-Item -Path $pather -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $pather -Name "$namer" -ErrorAction SilentlyContinue
New-ItemProperty -Path $pather -Name "$namer" -Value $Value
}

cls

for($i = 0 ; $i -le $filer.Length - 1; $i++)
{
$temper = $filer[$i]
if( $temper -like "Microsoft Office*")
{
add-key "Office" $temper
}
if($temper -like "*Windows*")
{
add-key "Windows" $temper
}
if($temper -like "VMWare*")
{
add-key "Vmware" $temper
}
if($temper -like "*CS*")
{
add-key "CS" $temper
}
if($temper -like "*visual studio*")
{
add-key "Visual Studio" $temper
}

}

Then what i did was add it to a shell script.

Uploaded my script (called keyer.ps1) and the CPP-ProductKeyFinder.exe as a dependency.

Here's the script text:
CPP-ProductKeyFinder.exe /csv
powershell.exe -nologo -executionpolicy bypass -WindowStyle hidden -noprofile -file "keyer.ps1"

Make sure you change the script name from script.sh to script.bat

This will create a couple of reg keys.

You can return them with the following custom inventory rules. (each is its own rule)
Office = RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\TVG,Office,TEXT)
Windows = RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\TVG,Windows,TEXT)
VMWare = RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\TVG,Vmware,TEXT)
CS = RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\TVG,CS,TEXT)
Visual Studio = RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\TVG,Visual Studio,TEXT)

Take a look at my previous post on how to creat the reports for the new Keys.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ