Skip to main content

Schedule Shutdown in Windows

 

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

Comments

Popular posts from this blog

SharePoint WebPart Error - Unable to add selected web part (s) – MOSS 2007

ISSUE: Recently I faced this issue that when I try to deploy my WebPart.  Unable to add selected web part(s). WebPartName: Cannon unregister UpdatePanel with ID ‘ctl00RTMPanel’ since it was not registerd with the ScripManager. This might occure if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel.   I faced this issue twice and both the time the issue was not what display here. This could be sure to any error in the WebPart. Following are list resolution from multiple instances.   RESOLUTION: 1. Check the WebPartName.webpart file. Check whether you have a proper PublicKeyToken value. When I face the issue the value was PublicKeyToken=$PublicKeyToken$. If you have used WSP builder then in the Visual Studio you will find this file at \WebPartsProject\12\TEMPLATE\FEATURES\WebPartName\WebPartName.webpart. Sometime when you create a new WebPart using WSP builder then you do not get

TIME – 25 Best Blogs of 2009

Every year Time makes a list of best blogs in the world. They chose 25 blogs from millions of blogs in the world, spanning politics, housekeeping, astronomy and everything in between. Below if a direct link to the TIME website for the list. I also copied it to easy comparison of last year best with this year best blogs.   25 Best Blogs of 2009     25 Best Blogs 2008   25 Best Blogs of 2009 Talking Points Memo The Huffington Post Lifehacker Metafilter The Daily Dish by Andrew Sullivan Freakonomics BoingBoing Got2BeGreen Zen Habits The Conscience of a Liberal: Paul Krugman Crooks and Liars Generación Y Mashable Slashfood Official Google Blog synthesis bleat /Film Seth Godin's Blog Deadspin: Spor

Howto Run Your HTML Static Website Locally In IIS On Windows PC

WHAT & WHY: As a developer many time you may wish if you could run your static HTML website locally on your computer (Windows 7, Windows Vista, Windows XP, Windows 2008). Although with Static website, you could easily download and double click the index.html or home.html file to open and run other pages. But this will not give you the real world senario. For example you will not able to use a path like /images/home-page-banner.jpg. You will have to use a relative paths like ../images/home-page-banner.jpg. Following are very easy steps to do so. These steps are for Static HTML website. I will also post steps for more advance websites that uses ASP, ASP.NET, Dotnetnuke etc and uses database server.   WHAT YOU NEED: 1. IIS Server installed on your local machine 2. FTP username, password to download files form your FTP server 3. Administrative rights on local machine. Many task will display messages requesting Administrative privilege to run the task.    STEPS: 1.