05 October 2008

 

For automatically Shutdown Windows  we have two method, one with "at" command and second with "Scheduled Tasks", but to start the shutdown process automatically in windows no inbuilt command or software available other then windows 2000 resources kit by default.

So first we need to download "PsShutdown"  and copy it to in folder like "C:/Adminutils"

PsShutdown is a command-line utility for shutting down or rebooting the local or a remote computer, PsShutdown can logoff the console user or lock the console PsShutdown requires no manual installation of client software.

1. Shutdown Windows with Windows "at" command

Now open windows command terminal (Start > Run > cmd).

In the terminal window use windows "at" command to schedule reboot:

C:> at 12:00pm C:\Adminutils\PsShutdown.exe -r -f -c -t 10

Above command will reboot system at 12pm.

If you want to shutdown system at 11:59 pm use following command

C:> at 11:59am C:\Adminutils\PsShutdown.exe -s -f -c -t 10

In above Command ,

  • -s: Shutdown windows server
  • -r: Reboot windows server
  • -f: Forces all running application to exit
  • -c: Allow the shutdown to by cancel by user
  • -t: Specifies the countdown in seconds until the shutdown

2. Shutdown Windows with Windows "Scheduled Tasks"

For executing Task Scheduler use following procedure.

Step 1 - Start > Accessories > System Tools > Scheduled Tasks

In the "Scheduled Task" Windows Click on Add "Scheduled Task" and then click "Next" in to open windows. then "Scheduled Task Wizard" will start

image

Step 2 - From "Scheduled Task Wizard" use "Browse" Button to locate the C:\Adminutils\PsShutdown.exe and press "Ok" button and then in new windows like below type the name of task (Auto Shutdown) and select the task frequency, hear I selected "Daily" and then click on "Next" button

image

Step 3- After this Select time on which time you want to execute the shutdown process hear I was slected on 11:59 PM, Every Day basis. and click "Next"

image

Step 4 - Now enter the user name and password, who want to shutdown PC automatically hear my user is Administrator and then type Password and click "Next" Button.

image

Step 5 - Now your New Scheduled Task has been defined, from beloow windows slect your new task and duble click on it .

image

Step 6 - In your Auto Shutdown Property windows go to the Run text box and complete the command with the following Syntax. and then click "Ok"

C:\Adminutils\PsShutdown.exe -s -f -c -t 10

image

Tagged:

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.