Windows Server 2008 Thread, Scheduled Tasks through Group Policy - Gpupdate /force in Technical; Hi guys,
I have been testing sceduled tasks through group policies today to see if we can run a silent ...
-
13th November 2012, 02:42 PM #1 Scheduled Tasks through Group Policy - Gpupdate /force
Hi guys,
I have been testing sceduled tasks through group policies today to see if we can run a silent gpupdate /force to all PC's on our network just to keep things upto date.
I created a new GPO, computer configuration > preferences > control panel > sceduled tasks and added a script to a new scheduled task which is as follows:
@echo off
gpupdate /force /wait:0
I scheduled it to run every day at 14:30 for a test.
How do i check to see if the task ran successfully? I cant see much in event viewer other than this line:
1.jpg
Is this an indication it ran successfully or is there another way to see if scheduled tasks failed or were successful?
Have i followed the correct method of performing a scheduled tasks on all machines?
Many thanks
Last edited by Darylrese; 13th November 2012 at 02:44 PM.
-
-
IDG Tech News
-
13th November 2012, 04:04 PM #2 connect using shedulded tasks mmc remotely and see what it says about last run result..
to automate mass scale use WMI (probably)
-
-
13th November 2012, 04:13 PM #3 Thank-you.
It says it was triggered but all the security properties are nothing like what i set in the group policy. For example i set to 'Run wheather a user is logged in or not' and its selected 'Run only when user is logged in' so it didnt run
-
-
13th November 2012, 04:16 PM #4
-
-
13th November 2012, 04:21 PM #5 i just created one in a GPO linked to my workstation and it retained the correct settings.
-
-
13th November 2012, 04:27 PM #6 To be honest you should not be needing to require a fudge like running gpupdate on your machines, if gpo settings are not applying correctly you have other issues.
GPO are refreshed at intervals anyway and unless it's a setting that needs a restart or logoff to apply then it will apply as intended, running a sheduled gpupdate will only refresh the machine settings unless a user happens to be logged on as well.
Ben
-
-
14th November 2012, 08:49 AM #7 Basically our users are not understanding why some GPO's take a couple of reboots and refuse to accept its normal, GPO's are applying fine but sometimes take a few reboots which as far as i know is perfectly normal anyway. The problem is they want it to work instantly and after only one reboot. I thought forcing a gpupdate every day in the background may help to ensure policies are upto date before they reboot. Also you always get that one PC that just refuses to update on its own without forcing.
Our clients are all Windows 7 Enterprise 64bit
Last edited by Darylrese; 14th November 2012 at 08:51 AM.
-
-
14th November 2012, 07:28 PM #8 the gpupdate happens in the background every 45 minutes or so anyway.
-
-
14th November 2012, 07:38 PM #9 /force will also reboot the clients without warning.
You can set the GP refresh period in GP itself but if its for things like software you can disable fast boot via GP which means the logon prompt takes longer to appear but all GP is applied/attempted before users can login.
Computer Configuration\Administrative Templates\System\Logon then enable “Always wait for the network at computer startup and logon” should be the setting. Also its a good idea to enable verbose output, it means staff see things going on when the machine boots rather then a generic loading message and if any part takes a while they can remote the stage the machine is slowing down.
-
-
14th November 2012, 07:47 PM #10 /force prompts reboot when i do it????
-
-
30th November 2012, 05:08 PM #11
- Rep Power
- 3
Like many have said I don't suggest forcing a gpupdate on a regular basis as the machines are going to update when they log in or 15-45 minutes depending on what you have it set at. Other than keeping things up to date was there any reason to do this?
-
SHARE: 
Similar Threads
-
By Gibbo in forum Office Software
Replies: 3
Last Post: 30th September 2009, 12:39 PM
-
By irsprint84 in forum Windows Server 2008
Replies: 1
Last Post: 17th April 2009, 07:32 PM
-
By Nick_Parker in forum Windows Server 2008
Replies: 3
Last Post: 10th February 2009, 08:55 AM
-
By thom in forum Network and Classroom Management
Replies: 5
Last Post: 13th August 2008, 05:31 PM
-
By frankybaloney in forum How do you do....it?
Replies: 4
Last Post: 29th January 2008, 12:55 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules