+ Post New Thread
Results 1 to 11 of 11
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 ...
  1. #1
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    10

    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.

  2. #2
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    connect using shedulded tasks mmc remotely and see what it says about last run result..

    to automate mass scale use WMI (probably)

  3. #3
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    10
    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

  4. #4
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    what os are clients?

  5. #5
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    i just created one in a GPO linked to my workstation and it retained the correct settings.

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,713
    Thank Post
    667
    Thanked 1,636 Times in 1,462 Posts
    Rep Power
    424
    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

  7. #7
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    10
    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.

  8. #8
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    the gpupdate happens in the background every 45 minutes or so anyway.

  9. #9

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,748
    Thank Post
    917
    Thanked 1,335 Times in 815 Posts
    Blog Entries
    1
    Rep Power
    447
    /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.

  10. #10
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    /force prompts reboot when i do it????

  11. #11

    Join Date
    Mar 2012
    Location
    US
    Posts
    56
    Thank Post
    5
    Thanked 3 Times in 3 Posts
    Rep Power
    6
    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:
+ Post New Thread

Similar Threads

  1. [MS Office - 2003] Group Policy to force automatic calculations
    By Gibbo in forum Office Software
    Replies: 3
    Last Post: 30th September 2009, 12:39 PM
  2. deploying software to Windows 7 through group policy
    By irsprint84 in forum Windows Server 2008
    Replies: 1
    Last Post: 17th April 2009, 07:32 PM
  3. Configure WiFi Access Points Through Group Policies
    By Nick_Parker in forum Windows Server 2008
    Replies: 3
    Last Post: 10th February 2009, 08:55 AM
  4. How to use the quiet silent switch to deploy software through group policy
    By thom in forum Network and Classroom Management
    Replies: 5
    Last Post: 13th August 2008, 05:31 PM
  5. ActiveX for IE7 through Group policy
    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
  •