Hi Guys
I need a VBscript that changes the below registry keys and gives them these values :
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetGroupEnabled"=dword:00000001
"TargetGroup"="APLP - WSUS Phase 1"
being new to vb this is poor attempt .. really appreciate it if someone could put it right ?
Set WshShell = WScript.CreateObject ("WScript.SHell")
WshShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" & "TargetGroupEnabled", 0, "REG_DWORD"
WshShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" & "TargetGroup", APLP - Phase 2, "REG_SZ"
Many Thanks !
I need a VBscript that changes the below registry keys and gives them these values :
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetGroupEnabled"=dword:00000001
"TargetGroup"="APLP - WSUS Phase 1"
being new to vb this is poor attempt .. really appreciate it if someone could put it right ?
Set WshShell = WScript.CreateObject ("WScript.SHell")
WshShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" & "TargetGroupEnabled", 0, "REG_DWORD"
WshShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" & "TargetGroup", APLP - Phase 2, "REG_SZ"
Many Thanks !