How to reboot the PC in VBScript

To reboot the pc in VBScript you can use the following snippet.

Sample VBScript

Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"

Please Share us:
Please rate this snippet

One thought on “How to reboot the PC in VBScript

Leave a Reply