Jump to content

SOLVED: Server 2003 Won't Shutdown Via Scheduled Task


agreenbhm

Recommended Posts

I need my Windows Server 2003 box to shutdown automatically at 4:00AM. Initially, I installed a shutdown program and created a scheduled task to initiate the program with a force shutdown switch. That didn't work, apparently. I ensured that it was being run as a server administrator (my admin user name), and it was.

Next, I created an autologin for my admin account so I would be logged in to the desktop when the task was run. Still, the problem remained.

Next, I uninstalled the program and created a batch shutdown file (shutdown.exe /f) and scheduled it to run at 4:00AM. Still, the next morning when I came to check the machine, it was still on.

I'm out of ideas. I checked Event Viewer, and according to it at 4:00AM my user account that was running the Scheduled Task was successfully logged off. I guess for some reason it's logging me off rather than shutting down. IDK why, since whenever I manually initiate the scheduled task the server shuts down immediately.

Does anyone have any ideas?

EDIT: Problem solved. I was only running the "/f" switch, which apparently forces an immediate logoff. I was under the impression that I could just use "/f" without the "/s", but this is not so. Running shutdown.exe /s /f solved my problem.

Edited by agreenbhm
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...