/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


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

10/10/2018 384 views
hkxnUH.png
0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

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 ]







Answered 01/22/2019 by: anonymous_139529
White Belt

All Answers

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.
Answered 10/11/2018 by: Hobbsy
Red 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"
Answered 10/11/2018 by: kwilson2099
White Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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