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

Microsoft 2007 - Microsoft Technology That Defines a New Decade

Last year Microsoft came with VS.NET 2005, SQL Server 2005 etc. VS.NET 2005 was a major change over VS.NET 2003 in terms of feature, web controls and the way you program. Same is true for SQL Server 2005 you can now use C# or VB.NET to create store procedures and store procedures could be a .NET class. So no more missing of Oracle package in SQL Server. Be prepared for much more then this as Microsoft is now changing everything. Year 2007 Microsoft will bring a new Operating System named Vista (formerly code-named "Longhorn") First Look... that have completly new file system named WinFs and 1000s of new features. Vista will also come with WinFX which is set of next-generation managed APIs provided by Microsoft. Microsoft have created a new section in their MSDN website [ View ... ] so that people can start preparing for the next generation i.e. 2007. Here you can get information on Windows Presentation Foundation WPF (formerly code named "Avalon") provides the fo