cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AdmJLovejoy
Champion Sweeper
Binary Registry Values come back empty. I'm assuming it's a code issue within the service.

Sample:

const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
strValueName = "LicenseInfo"
oReg.GetBinaryValue HKEY_LOCAL_MACHINE,strKeyPath,_
strValueName,strValue


For i = lBound(strValue) to uBound(strValue)
StdOut.WriteLine strValue(i)
Next
Thanks, Jim Lovejoy __________________________________________________________________________________________________ James W. Lovejoy | IBM - Cloud Managed Services Delivery | Infrastructure Architect (Windows Server ...
2 REPLIES 2
AdmJLovejoy
Champion Sweeper
There are many useful reasons to pull Binary Reg Key Values.

Here is a TechNet article that may be helpful...

http://technet.microsoft.com/en-us/library/ee176770.aspx
Thanks, Jim Lovejoy __________________________________________________________________________________________________ James W. Lovejoy | IBM - Cloud Managed Services Delivery | Infrastructure Architect (Windows Server ...
Hemoco
Lansweeper Alumni
This is by design since the first version that could read registry keys?
(most) Binary keys are not meant to be converted into string.