Guido Lokietek
06-25-2002, 05:12 PM
I've to create for 600 user the key HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVe rsionPoliciesSystemDisableLockWorkstation = 1
I read that i can do it like this
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!\" &_
strComputer & "
ootdefault:StdRegProv")
strKeyPath = "SOFTWARESystem Admin Scripting Guide"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
for a key in MACHINE, how can I do it for all my users?
Can any one help me?
Sorry about my poor English.
Guido
I read that i can do it like this
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!\" &_
strComputer & "
ootdefault:StdRegProv")
strKeyPath = "SOFTWARESystem Admin Scripting Guide"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
for a key in MACHINE, how can I do it for all my users?
Can any one help me?
Sorry about my poor English.
Guido