const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject( _
    "winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strValueName = "DisableOps"
strValue = "00000001"
strKeyPath = "SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU"
objReg.SetDWORDValue HKEY_LOCAL_MACHINE,_
    strKeyPath,strValueName,strValue
WScript.Echo "Example expanded_String_Value at " _
    & "HKEY_LOCAL_MACHINE\SOFTWARE\NewKey"