1: 2: 3:
%systemroot%\regedit /s <filename>.reg Sleep 100 shutdown -l
1: 2: 3: 4: 5: 6:
Dim WshShell Set WshShell=WScript.CreateObject("WScript.Shell") WshShell.RegWrite "HKCU\MyNewKey\", 1 ,"REG_DWORD" WshShell.RegWrite "HKCU\MyNewKey\MyValue", "Hello world!" wscript.sleep 100 WshShell.run "shutdown /l"