/build/static/layout/Breadcrumb_cap_w.png

What command can i use so a script can make the pc reboot?

hkxnUH.png

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_139529 5 years ago
White Belt
1

I made a copy of the KACE shutdown script and changed the  -s (for shutdown) to -r (reboot)

Also there is a warning message prompt for the user and you can set that to whatever time you like.
Mine is set for 30 seconds [ /C shutdown -r -c "Reboot by administrator" -t 30 -d U:00:00 ]







Posted by: Hobbsy 5 years ago
Red Belt
0
There is usually a default script on every KACE box to do just that title "Restart Machine" . You will need to enable the script, set the alerts and select a target for it to work.
Posted by: kwilson2099 5 years ago
White Belt
0
  • C:\WINDOWS\system32\shutdown.exe -r

in a bat shutdown  /r

in a vbscript :
  • Option Explicit
    Dim objShell
    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ