Logon Script for Registry Setting
Hi guys,
I have been tasked with adding some registry changes to our logon script for Group Policy Slow Detection.
Ive got the registry key paths and values that need to be set however i cant get the logon.vbs to actually do anything or add the value. Below is what I have found from googling the problem.
'Set objWshShell = WScript.CreateObject("WScript.Shell")
'Set WshShell = WScript.CreateObject("WScript.Shell")
'WshShell.RegWrite "HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\GroupPolicyMinTransferRate",0, "REG_DWORD"
Im not sure whether I need the top line or not but can anyone see why no key gets added?
( We want the slow link detection set to zero so that all domain users get the bginfo, and other GPOs)
Thanks,
I have been tasked with adding some registry changes to our logon script for Group Policy Slow Detection.
Ive got the registry key paths and values that need to be set however i cant get the logon.vbs to actually do anything or add the value. Below is what I have found from googling the problem.
'Set objWshShell = WScript.CreateObject("WScript.Shell")
'Set WshShell = WScript.CreateObject("WScript.Shell")
'WshShell.RegWrite "HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\GroupPolicyMinTransferRate",0, "REG_DWORD"
Im not sure whether I need the top line or not but can anyone see why no key gets added?
( We want the slow link detection set to zero so that all domain users get the bginfo, and other GPOs)
Thanks,
Comments
-
Claymoore Member Posts: 1,637I'm not a VB scripter so I can't check your syntax, but you are writing to the HKLM hive. Do your users have the security rights to create the key and value in your script? If not, you can grant them rights through group policy.