''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Set WshNetwork = WScript.CreateObject("WScript.Network") Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shutdown Setting", &00000002, "REG_DWORD"