‎02-02-2011 11:57 PM
Solved! Go to Solution.
‎02-03-2011 06:48 PM
‎02-05-2011 01:12 AM
‎02-04-2011 06:04 PM
‎02-04-2011 05:37 PM
‎02-04-2011 05:32 PM
‎02-04-2011 05:16 PM
' Constants (taken from WinReg.h)
'
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
' Chose computer name, registry tree and key path
'
strComputer = "MyCOMPUTERName" ' Use . for current machine
hDefKey = HKEY_LOCAL_MACHINE
strKeyPath = "SOFTWARE\Microsoft\Internet Explorer"
' Connect to registry provider on target machine with current user
'
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
' Try to enum the subkeys of the key path we've chosen. We can't if the key doesn't exist
'
If oReg.EnumKey(hDefKey, strKeyPath, arrSubKeys) = 0 Then
wscript.echo "Key exists!"
Else
wscript.echo "Key does not exists!"
End If
‎02-04-2011 04:58 PM
‎02-04-2011 01:03 AM
‎02-04-2011 11:20 AM
pjtech wrote:
the key I am looking for is in HKEY_CURRENT_USER and it would appear that entire path is blocked on Windows 7 but not XP. From the best I can tell the permissions are the same..
‎02-03-2011 10:38 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now