Shut dow system at night

  • Thread starter Thread starter mark olczyk
  • Start date Start date
M

mark olczyk

We have over 300 users in our company, 1/4 of the users leave their system
on overnight, is there a way to force shutdown of all the workstation like
at 10:00pm every night, Thanks for help
 
You could configure a scheduled task on each machine to run at 10 and
shut down the systems?

There's nothing built into Windows that I've heard of.

Thanks
Greg

-----Original Message-----
From: mark olczyk [mailto:[email protected]]
Posted At: 16 December 2005 19:44
Posted To: microsoft.public.win2000.general
Conversation: Shut dow system at night
Subject: Shut dow system at night


We have over 300 users in our company, 1/4 of the users leave their
system on overnight, is there a way to force shutdown of all the
workstation like at 10:00pm every night, Thanks for help
 
mark olczyk said:
We have over 300 users in our company, 1/4 of the users leave their system
on overnight, is there a way to force shutdown of all the workstation like
at 10:00pm every night, Thanks for help

Please forgive my curiosity, but why would you want to do that? A company I
worked for had exactly the opposite rule (all systems must be left on 24/7).

Regards,

Princess Morgiah
 
Companies who push updates to their workstations after hours go with the "do
not shutdown rule" where those of us who do not update workstations after
hours go with the "shutdown rule".

At any rate, it is best for workstations to at least be rebooted daily to
cleanup runaway processes, etc. Some of my users who do not shutdown
regularly, call and complain of system slowness. As soon as they reboot, all
is well.

At any rate, I do believe their is a group policy which allows you to
control shutdown of workstations on a network.
 
mark olczyk said:
We have over 300 users in our company, 1/4 of the users leave their system
on overnight, is there a way to force shutdown of all the workstation like
at 10:00pm every night, Thanks for help

Use the Task Scheduler on your server to run the following
batch file at 10pm every night:

Line1 @echo off
Line2 for /F %%a in ('net view ^| find "\\"') do if /i not
%%a==\\%ComputerName% echo shutdown /s /f /t %%a

Please note:
- There are different versions of shutdown.exe, with different
switches. Check out the switches for your version.
- Remove the word "echo" in Line2 in order to activate the script.
 
I've read before that each PC costs £100 ($170 ish) a year to leave
running 24/7 - that's a big chunk of money wasted.

Any company that requires pushing updates overnight should look at Wake
On LAN - push the update down then shut the machine down again. An
example of this is the project I am working on at the moment - 10,000
client PC's - that's £1,000,000 a year!!

My 2 pence worth.

They are stating £70 a year, but some interesting figures.
http://www.brad.ac.uk/admin/estates/environ/work.html


-----Original Message-----
From: Princess Morgiah [mailto:p[email protected]]
Posted At: 16 December 2005 21:02
Posted To: microsoft.public.win2000.general
Conversation: Shut dow system at night
Subject: Re: Shut dow system at night


mark olczyk said:
We have over 300 users in our company, 1/4 of the users leave their
system on overnight, is there a way to force shutdown of all the
workstation like at 10:00pm every night, Thanks for help

Please forgive my curiosity, but why would you want to do that? A
company I worked for had exactly the opposite rule (all systems must be
left on 24/7).

Regards,

Princess Morgiah
 
Use the Task Scheduler on your server to run the following
batch file at 10pm every night:

Line1 @echo off
Line2 for /F %%a in ('net view ^| find "\\"') do if /i not
%%a==\\%ComputerName% echo shutdown /s /f /t %%a

Please note:
- There are different versions of shutdown.exe, with different
switches. Check out the switches for your version.
- Remove the word "echo" in Line2 in order to activate the script.
Nice script. Question: If you run this, won't it try to shutdown
servers as well as workstations? I ran it with the echo command from
my console and it listed two of my servers as well as the
workstations. Don't really want those servers shut down!
 
Temuss said:
Nice script. Question: If you run this, won't it try to shutdown
servers as well as workstations? I ran it with the echo command from
my console and it listed two of my servers as well as the
workstations. Don't really want those servers shut down!

I wrote the script so that it will not shut down the machine
on which it runs. If there are other excempt machines then
you have to put in appropriate filters, e.g. like so:

Line1 @echo off
Line2 net view | find "\\" | find /i /v "%ComputerName%" | find /i /v
"Server1" | find /i /v "Server2" > c:\PCs.tmp
Line3 for /F %%a in c:\PCs.tmp do echo shutdown /s /f /t %%a
Line4 del c:\PCs.tmp
 
I wrote the script so that it will not shut down the machine
on which it runs. If there are other excempt machines then
you have to put in appropriate filters, e.g. like so:

Line1 @echo off
Line2 net view | find "\\" | find /i /v "%ComputerName%" | find /i /v
"Server1" | find /i /v "Server2" > c:\PCs.tmp
Line3 for /F %%a in c:\PCs.tmp do echo shutdown /s /f /t %%a
Line4 del c:\PCs.tmp
Very nice! Thanks! I think I have some uses for this.

James
 
Back
Top