Well I have a script that is working fine under XP but it doesnt want
to work under NT. I am trying to write a multi String value in the
registry.
const HKEY_LOCAL_MACHINE = &H80000002
strKeyPath = "SOFTWARE\Patchlink.com\Gravitix\Agent\Policy"
MultValueName = "DriveExemption"
strComputer = "."
iValues = Array("F:\", "G:\", "H:\", "I:\", "J:\", "K:\",_
"L:\", "M:\", "N:\", "O:\", "P:\", "Q:\", "R:\",_
"S:\", "T:\", "U:\", "V:\", "W:\", "X:\", "Y:\", "Z:\" )
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
oReg.SetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,_
MultValueName,iValues
Any Ideas?
Thanks
Ryan