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

Could not open virtual machine – vmx is not a valid virtual machine configuration file

I recently faced an issue with one of my VMWare virtual machine that when I try to run this virtual machine it did not work. VMWare display this message that “Could not open virtual machine: .vmx. ".vmx" is not a valid virtual machine configuration file.” ISSUE: Could not open virtual machine: G:\VPC\RakhiQAXPProfQtp\Windows XP Professional.vmx. "G:\VPC\RakhiQAXPProfQtp\Windows XP Professional.vmx" is not a valid virtual machine configuration file. I try to open .vmx file [G:\VPC\RakhiQAXPProfQtp\Windows XP Professional.vmx] in notepad then I found it was empty (0 KB). Resolution: I wanted to resolve it quickly so I try following method and it worked very well. But this is not a valid documented process so please try with caution. Following are the steps 1. First of all go to the folder where you have your virtual machine and delete all .lck folders. 564df2d4-03de-04e8-d1c3-bd2d53dcb1b7.vmem.lck Windows XP Professional.vmdk.lck

How To Create Virtual Machine Using Existing vmdk file in VMWare Workstation

vmdk file is hard disk of the VMWare virtual machine. There are many scenarios where you may need to create a new virtual machine for an existing vmdk file. This is also an alternate Method to the “ vmx is not a valid virtual machine configuration file – Could not open virtual machine ” issue. Please refer to the previous post “ Could not open virtual machine – vmx is not a valid virtual machine configuration file ” for a full list of possible resolution. This post is to describe one of the solution in more details. How To Create a new virtual machine & attach the existing .vmdk file: 1. Open VMware and select create a new virtual machine with custom (advanced) configuration option. 2. Chose “I will install the operating system later”. and chose “I will install the operating system later”. 3. Select the operating system that matches the operating system in your existing .vldk file. 4. Select a location of the new virtual machine 5. Chose “Use an exis