Schedule a daily shutdown of computers???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I want to be able to schedule a shut down for my client-computers. For
example: In my domain i want every computer to shut down at 6.00 am everyday.
So my clients have to start the computer up every morning. Is ther a way to
do this? With GPO or something else.
 
Gladly stolen from Ramesh
http://www.mvps.org/sramesh2k/

Use Task Scheduler to schedule the computer to shut down and restart at a
specific time.

To do so, follow these steps:

01. Create a shortcut to %windir%\System32\shutdown.exe -s -t 00.
02. Click Start, and then click Control Panel.
03. Click Performance and Maintenance, and then click Scheduled Tasks.
04. Double-click Add Scheduled Task. The Scheduled Task Wizard starts.
05. Click Next.
06. Under Click the program you want Windows to run, click Browse.
07. In the Select Program to Schedule dialog box, locate the
shortcut that you created, click it, and then click Open.
08. Under Perform this task, specify a name for the task and how frequently
you want this task to run, and then click Next.
09. Under Select the time and day you want this task to start, specify a
start time and date for the task, and then click Next.
10. Type the user name and password to run this task under, and then click
Next.
11. Click to select the Open advanced properties for this task when I click
Finish check box, and then click Finish.
12. Click the Task tab.
13. In the Run box, change it to read:
%windir%\System32\shutdown.exe -s -t 00
Change the Start in box to read:
%windir%
14. Click Apply.
15. Click OK.

NOTE: For exact parameters for shutdown.exe, open cmd and type
shutdown.exe /?

Using Task Scheduler to schedule the computer to shut down and restart at a
specific time
http://www.winxptutor.com/schsd.htm

You Cannot Schedule a Windows XP-Based Computer to Shut Down and Restart by
Using the AT Command with Shutdown.exe:
http://support.microsoft.com/default.aspx?scid=kb;en-us;814761

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
In
Hi

I want to be able to schedule a shut down for my client-computers. For
example: In my domain i want every computer to shut down at 6.00 am
everyday. So my clients have to start the computer up every morning.
Is ther a way to do this? With GPO or something else.

Well... I have no idea if this will work but I'll post it just because it
might...

Make a shortcut with this as the properties:

%windir%\System32\shutdown.exe -s -t 00 -c "Shut Down!"

(Replace "Shut Down!" with anything you want.)

Start > Programs > Accessories > System Tools > Scheduled Tasks.
Start the Wizard and aim it at that shortcut. Set the time to daily at 6:00
PM.

It _SHOULD_ work. If aimed at the process shutdown.exe it might not actually
shut down without user intervention. The switches will make it shut down
quietly and without a delay.

Just for referrence, my reboot shortcut is:
%windir%\System32\shutdown.exe -r -t 00 -c "Reboot!"

I don't recall where I got the information but I keep copies of the
shortcuts saved to disk so that I can add the shortcuts to new
installations.

Galen
--

"My mind rebels at stagnation. Give me problems, give me work, give me
the most abstruse cryptogram or the most intricate analysis, and I am
in my own proper atmosphere. I can dispense then with artificial
stimulants. But I abhor the dull routine of existence. I crave for
mental exaltation." -- Sherlock Holmes
 
In

Well, at least now I know it will work :) LOL It hadn't appeared here when I
was sending mine by the looks of things but at least I know it works now.
Thank you :)

Galen
--

"My mind rebels at stagnation. Give me problems, give me work, give me
the most abstruse cryptogram or the most intricate analysis, and I am
in my own proper atmosphere. I can dispense then with artificial
stimulants. But I abhor the dull routine of existence. I crave for
mental exaltation." -- Sherlock Holmes
 
Thank's for the reply. It worked fine.

But is there av way to solve this on a administration lever with many
computers. Your tip worked fine localy. But i would like to administrat this
centraly.

Wesley Vogel said:
Gladly stolen from Ramesh
http://www.mvps.org/sramesh2k/

Use Task Scheduler to schedule the computer to shut down and restart at a
specific time.

To do so, follow these steps:

01. Create a shortcut to %windir%\System32\shutdown.exe -s -t 00.
02. Click Start, and then click Control Panel.
03. Click Performance and Maintenance, and then click Scheduled Tasks.
04. Double-click Add Scheduled Task. The Scheduled Task Wizard starts.
05. Click Next.
06. Under Click the program you want Windows to run, click Browse.
07. In the Select Program to Schedule dialog box, locate the
shortcut that you created, click it, and then click Open.
08. Under Perform this task, specify a name for the task and how frequently
you want this task to run, and then click Next.
09. Under Select the time and day you want this task to start, specify a
start time and date for the task, and then click Next.
10. Type the user name and password to run this task under, and then click
Next.
11. Click to select the Open advanced properties for this task when I click
Finish check box, and then click Finish.
12. Click the Task tab.
13. In the Run box, change it to read:
%windir%\System32\shutdown.exe -s -t 00
Change the Start in box to read:
%windir%
14. Click Apply.
15. Click OK.

NOTE: For exact parameters for shutdown.exe, open cmd and type
shutdown.exe /?

Using Task Scheduler to schedule the computer to shut down and restart at a
specific time
http://www.winxptutor.com/schsd.htm

You Cannot Schedule a Windows XP-Based Computer to Shut Down and Restart by
Using the AT Command with Shutdown.exe:
http://support.microsoft.com/default.aspx?scid=kb;en-us;814761

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Hi Galen,

It definitely works. 8-)

Shutdown & Reboot Shortcuts

Desktop Shutdown Shortcut
Right click the desktop | New | Shortcut | Create Shortcut Wizard opens |
Type or paste: %windir%\System32\shutdown.exe -s -t 00 |
Next | Type name like: SHUTDOWN | Finish | Right click the new shortcut |
Make sure Start in has: %windir%

Desktop Reboot Shortcut
Right click the desktop | New | Shortcut | Create Shortcut Wizard opens |
Type or paste: %windir%\System32\shutdown.exe -r -t 00 |
Next | Type name like: REBOOT | Finish | Right click the new shortcut |
Make sure Start in has: %windir%

Customize the icons
Right click each shortcut | Properties | Shortcut tab | Change Icon button

"How often have I said to you that when you have eliminated the impossible,
whatever remains, however improbable, must be the truth?"


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Shutdown
Enables you to shut down or restart local or remote computers one at a time.
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx

Look at >>

-m [\\ComputerName] : Specifies the computer that you want to shut down.

You can see most of this by opening a command prompt...
Start | Run | Type: cmd | OK |
When the command prompt opens, type:

shutdown /?

Hit Enter.
-----

Scroll way down past the ads to see a bunch of ideas...
shutdown using batch file
http://www.experts-exchange.com/Miscellaneous/Q_21257745.html

To restart or shut down remotely and document the reason
http://www.microsoft.com/resources/...d/proddocs/en-us/rrchowtoshutdownremotely.asp

Microsoft Windows 2000 Scripting Guide - Shutting Down a Computer
http://www.microsoft.com/resources/...00/server/scriptguide/en-us/sas_cpm_evqo.mspx

Shutting Down Computers and Logging Off Users
http://www.microsoft.com/resources/...00/server/scriptguide/en-us/sas_cpm_jleo.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
KillerFroce said:
Thank's for the reply. It worked fine.

But is there av way to solve this on a administration lever
with many computers. Your tip worked fine localy. But i would
like to administrat this centraly.
Hi

For the WinXP client computers, you could run Schtasks.exe in a
computer startup script (with a GPO) that runs as part of the
boot up process (before the user logs in). It runs under the
system context and has admin rights.

Schtasks.exe is a command line tool can create a scheduled task.

To avoid the job being recreated every time the computers reboot,
e.g. check for the .job file in the folder %windir%\Tasks\

To avoid users being able to read the script where a password is
stored, grant read access only for the AD group "Domain Computers"
to the script file.
 
I wrote a VB script that takes a list of workstations and uses the
Win32_Schedule class to schedule a reboot for a specified time every day. It
goes with another script that shuts downs the system (so I could make sure a
user was not logged in still, and log errors). using the
Win32_OperatingSystem.Shutdown method. I could post code if you still need
something...
 
Back
Top