Kaseya Community

Shutdown script

  • For some reason I cannot shut down my system using scripts.

    Here is my script;

    execute shell command

    shutdown -s



    I have also tried

    shutdown -s -f

    Anybody know how to easily shutdown and system remotly?




    Legacy Forum Name: Shutdown script,
    Legacy Posted By Username: seangoss
  • Ok I solved my own problem . My mistake was running as a system not a user. If you do this you must run as a user FYI.



    Hope this helped someone out there......Cool


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: seangoss
  • I am having a problem shutting down a machine that is not logged in . It seems to work great with systems that are already logged in but not logged out.

    Does anybody know why this script will not run while not logged in?

    I am running shutdown -s a shell command . I have tried as a user and asthe system


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: seangoss
  • I figured out my problem again. I am using pssshutdown from winternals . It works like a charm.

    I simply ran the application deployment wizard and and it added the script . I also added a -f for power down the machine. But you can do other functions like lock workstation and other cool thing with this utlity.


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: seangoss