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, 03:42 PM #1
Scheduled Tasks through Group Policy - Gpupdate /force
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:
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:
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?
Last edited by Darylrese; 13th November 2012 at 03:44 PM.
13th November 2012, 05: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, 05:13 PM #3
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, 05:16 PM #4
13th November 2012, 05:21 PM #5
i just created one in a GPO linked to my workstation and it retained the correct settings.
13th November 2012, 05: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.
14th November 2012, 09: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 09:51 AM.
14th November 2012, 08:28 PM #8
the gpupdate happens in the background every 45 minutes or so anyway.
14th November 2012, 08: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, 08:47 PM #10
/force prompts reboot when i do it????
30th November 2012, 06:08 PM #11
- Rep Power
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?
By Gibbo in forum Office Software
Last Post: 30th September 2009, 01:39 PM
By irsprint84 in forum Windows Server 2008
Last Post: 17th April 2009, 08:32 PM
By Nick_Parker in forum Windows Server 2008
Last Post: 10th February 2009, 09:55 AM
By thom in forum Network and Classroom Management
Last Post: 13th August 2008, 06:31 PM
By frankybaloney in forum How do you do....it?
Last Post: 29th January 2008, 01:55 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)