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"

One thought on “How to reboot the PC in VBScript”

Leave a Reply