I wanted to add an entry to the following registry path. Is it
possible?
M P napsal(a):
> I wanted to add an entry to the following registry path. Is it
> possible?
Example vbscript:
'----------------------------------------
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "MyNetworkComputername"
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "Softwares\Microsoft\Windows\Currentversion\Run"
strValueName = "StartMyProgram"
strVal="myprogram.exe"
oReg.SetstringValue _
HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strVal
'----------------------------------------
Libor