Apply shutdown policy after office hours in a Domain

Hello,

Can someone help in this please. I read so many threads and didn't get the answer i needed. i want to apply a shutdown policy on some selected computers in my domain after office hours after checking out that these PC were idle, logged off or locked. but the problem i'm facing here is that some employees ( or ADMINS) SOMETIME are leaving their PC ON downloading files or runningscheduled jobs  after office hours and dont want thier PC to be shutted down!!

i need to apply this through Group Policy. but as i understood i need to use a third party tool for the scheduling part.

regards,
A.A
LVL 1
AZZA-KHAMEESAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jay_Jay70Commented:
Hi AZZA-KHAMEES,

why not use this free tool
http://www.sysinternals.com/Utilities/PsShutdown.html

set up a file on your server that shuts down all machine and run it when you want it too, or set as a scheduled task on the server

you will need admn rights on each machine you want to shutdown

Cheers!
0
AZZA-KHAMEESAuthor Commented:
thank u jay jay for your instance reply. but for example i would like to shut down some PCs at 3 pm automaticlly for example without using scheduled tasks because users have admin rights on thier PCs, where can i spicify the time?

regards,
0
Jay_Jay70Commented:
thats no problem :)

you can set a scheduled task on your server, that then sets off the script, which then affects all machines, users wouldnt even see it and in no way could edit it as it sits on your server..

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jay_Jay70Commented:
sorry that i can give out the script, i am learning a bit of scripting at the moment though, so if you can get a direct script given to you, send me an email and ill see what i can for you yeah?
0
Jay_Jay70Commented:
AZZA-KHAMEES,

oops wrong question mate sorry!
0
Naser GabajE&P Senior Software SpecialistCommented:
Greetings AZZA-KHAMEES,

This thread talking about the same subject, have a look and let me know:

http://groups.google.com/group/microsoft.public.windows.server.scripting/browse_thread/thread/96b8d153e9874bf3/699628a087dd88d6

Good Luck!

Naser
0
Naser GabajE&P Senior Software SpecialistCommented:
Also, you can implement OU's called shutdwon GP, Move those users that you wanted to shutdown thier machines, and then implement the policy only on those OU's only, using (Startup/Shutdwon) scripting under the following Path:

Computer configuration>windows settings>scripts(Startup/Shutdwon).

HTH

Good luck

Naser

0
Jay_Jay70Commented:
Naser,

how does that work with sheduling though?
0
mikeleebrlaCommented:
shutdown.exe is built into the windows OS (well in 2K it was part of the resource kit) but you can download it here.

http://www.mameworld.net/ultrastyle/download.htm

run shutdown.exe /? to see the switches that you want to add.
then just create a batch file with those switches
then just either create a local scheduled task or a domain GPO to run that batch file.





0
JimsZCommented:
first off... you can create a batch file such as this for each pc.  Just put that into a text msg, then rename as .bat   This would shut each computer down in 300 seconds.  They can manually stop it by clicking start-run and typing shutdown -a


shutdown -t 300 -s -f -c shutdown_time

The shutdown command above will tell the computer the command, -t 300 is 300 seconds (could be changed to 900, etc).  The -s is to shutdown, -f is to force any running applications to close, -c is to comment the "shutdown_time"



Or you can shut them down on your end by typing in

shutdown -m \\computername -t 300 -s -f -c shutdown_time

You could create a batch file for each computer or create one batch file with all computers to run on domain controller or server ran with administrative rights.
0
AZZA-KHAMEESAuthor Commented:
thanks all for your efforts, i found this freetool " http://www.beyondlogic.org/solutions/shutdown/shutdown.htm " i tested it, it creates a scheduled task in the user machine and runs it then delete it . it was cool but the problem was if this senario appears, if the user logged in, policy was applied, scheduled task was created, then the user shuts down his PC before the job runs!!! when he logs in the next day and the policy creates the new scheduled job it will not run cause thier will be 2 scheduled tasks (i found out this conclusion after testing)

does anyone knows how to delete the scheduled task when the computer shutsdown???

thanks
0
Naser GabajE&P Senior Software SpecialistCommented:
AZZA-KHAMEES

Read this assisted answer from "jhautani"

I think it's much likely fit your need:

http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21068118.html#11617292 

Good luck.

Naser
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.