Shutdown Win7 Clients Remotely thru Task Schedular
-
Monday, May 14, 2012 7:44 AM
hi,
if someone can help me to shutdown win 7 client computers each night at 8:00pm. We have Windows 2008 R2 domain controller in use. Please let me know how to create a schedule or a script or anything useful which canhelp me to automatically shutdown alltheclient computers remotely.
If i have to create a script or batch file? and please let me know how the script or thebatch file willbe created and also how to push it thru GPO?
Thanks.
All Replies
-
Monday, May 14, 2012 7:49 AM
Hello Ali,
Please go through the below thread once.
Regards, Ravikumar P
-
Monday, May 14, 2012 7:52 AMAlso another useful thread http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/3608dd77-3727-4cc6-b3c6-cfcf1a486a2a
Regards, Ravikumar P
-
Monday, May 14, 2012 8:04 AM
Hi,
do it using GPP:
Preferences/Control Panel Settings/Scheduled Tasks
Create a new schedule task
GENERAL
Choose name etc.
"Action Create"
Task
Run -> C:\Windows\System32\shutdown.exe
Arguments -> /s /f /t 45 /c "This is a scheduled shutdown of your computer, please close all programs for the time being!"
Scheduled task runs at a specified time -> Enabled
Schedule
Choose your time.
Kind regards,
Tim
MCITP, MCTS
http://directoryadmin.blogspot.comThis posting is provided 'AS IS' with no warranties or guarantees and confers no rights.
- Proposed As Answer by Meinolf WeberMVP Monday, May 14, 2012 8:49 AM
- Marked As Answer by Miya YaoModerator Wednesday, May 23, 2012 2:22 AM
-
Monday, May 14, 2012 9:05 AM
hi,
i tried to create the task as you instructed but unfortunately i didnot get many things in that. Like under the General tab, what settings i have to do for Security Options. Further, I am unable to find the Task and Schedule Tabs. I am getting tabs General, Actions, Conditions, Settings, Common. Also please be informed that I am choosing Task Schedular under Computer Configuration and also while createing a new task i am selecting Immediate Task (Windows Vista or Later). Correct me please if i am wrong.
Thanks
-
Monday, May 14, 2012 9:09 AM
Dear Mr. Ravi,
I followed the link as you mentioned but it describes settings for Server 2003 and we are using Server 2008 R2. Is there any other thread to achieve my requirement?
- Edited by Ali23 Monday, May 14, 2012 9:18 AM
-
Monday, May 14, 2012 11:37 AM
hi,
i tried to create the task as you instructed but unfortunately i didnot get many things in that. Like under the General tab, what settings i have to do for Security Options. Further, I am unable to find the Task and Schedule Tabs. I am getting tabs General, Actions, Conditions, Settings, Common. Also please be informed that I am choosing Task Schedular under Computer Configuration and also while createing a new task i am selecting Immediate Task (Windows Vista or Later). Correct me please if i am wrong.
Thanks
Hi,
attatched see a screenshot:
Kind regards,
Tim
MCITP, MCTS
http://directoryadmin.blogspot.comThis posting is provided 'AS IS' with no warranties or guarantees and confers no rights.
-
Tuesday, May 15, 2012 5:41 AM
Hi Butim,
Thanks for your promt replies, but still it does not work. I have created the task as you described but i might be making some problem with the GPO linking or something like that.
Let me explain my scenario, I created an OU, made a Security Group, moved the security group to the OU and added a client machine in that security group. I linked the newly created GPO to the OU.
Pease let me know if anything i have to rectify.
Thanks.
-
Tuesday, May 15, 2012 6:27 AM
Hi,
Move the computer to the OU. If you using Authenticated Users you haven´t to create a group. if you want to use groups -> Remove Authenticated users from Policy Scope and add your local group to it. Create a global group and add the local as Member Of and add the workstation as member. Do a gpupdate on the workstation and check with gpresult if the policy is applied.
Kind regards,
Tim
MCITP, MCTS
http://directoryadmin.blogspot.comThis posting is provided 'AS IS' with no warranties or guarantees and confers no rights.
- Marked As Answer by Miya YaoModerator Wednesday, May 23, 2012 2:22 AM

