How to shutdown Win7 network PCs through group policy.

Hi

Our DCs are windows 2012. We have a OU  and within this OU there is sub OU's called
IT room 1
IT room 2
IT room 3
IT room 4
Each of these rooms have 35, Windows 7 PCs.I want to shutdown these network PCs every day at 7PM. Is there away of doing this through the group policy automatically.
Any tutorials as how to do this much appreciated.
Our PCs are quite old , do I need to enable any settings to achieve this.

Thanks in advance.
lianne143Asked:
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.

Joshua GrantomSenior Systems AdministratorCommented:
You can push out scheduled tasks through group policy that will initiate a shutdown at 7 pm if no users are active

http://www.edugeek.net/blogs/simpsonj/1923-windows-7-shutdown-through-group-policy-preferences.html
mcsweenSr. Network AdministratorCommented:
I use a scheduled task to reboot computers daily at 7PM under Computer Config/Preferences/Control Panel Settings/Scheduled Tasks.  The one below will shut them down instead.  Also, it won't matter if anyone is logged on, they will get a message to save and if they don't in 2 min they are bounced.

Set to run as NT Authority\System
Triggers - Daily @ 7PM
Actions - Start a program
       -Program/Script: %systemroot%\System32\shutdown.exe
       -Add Arguments: -s -f -t 120 -c "Windows will shutdown in 2 minutes.  Please save your work immediately."

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
Joshua GrantomSenior Systems AdministratorCommented:
lianne143,

Any luck?
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

lianne143Author Commented:
Sorry Guys , I will try this tomorrow and will post you the results.
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
mcsweenSr. Network AdministratorCommented:
I believe there are 2 perfectly good answers here.  I know the one I posted works because it was taken directly from my Active Directory.  My answer can easily be confirmed here. http://technet.microsoft.com/en-us/library/bb491003.aspx
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
Active Directory

From novice to tech pro — start learning today.