Create a text file named reboot.vbs and paste in the text below.
------------------------------------
Set colOperatingSystems = GetObject_
("winmgmts:{(Shutdown)}").ExecQuery("Select * from
Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(1)
Next
------------------------------------
Create a text file named logoff.vbs and paste in the text below.
------------------------------------
Set colOperatingSystems = GetObject_
("winmgmts:{(Shutdown)}").ExecQuery("Select * from
Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(0)
Next