none
Machine Policy Long process

    Question

  • Thanks for taking time. 

    So I am using policy reporter to view gpmc logs and gpsvc,log files. Currently Machine Policy takes around  51.83 seconds to complete. AV disabled. Windows 7 x64

    Please take a look and any thoughts would be greatly appreciated. I am just trying to figure out the delay from 8.947 seconds to 50.058

    Thursday, January 28, 2016 5:29 PM

All replies

  • Am 28.01.2016 um 18:29 schrieb chrissezhi_sc:
    > [...] I am
    > just trying to figure out the delay from 8.947 seconds to 50.058
     
    It´s because you are deploying printers, with Deployed Printer
    Connections {8A28E2C5-8D06-49A4-A08C-632DAA493E17}, which is running
    just before the Group Policy Services
    {91FBB303-0CD5-4055-BF42-E512A681B325}.
     
    Can be the amount of printers, can be the amount of driver downloads,
    but can be one single printer driver aswell.
     
    Mark
    --
    Mark Heitbrink - MVP Windows Server - Group Policy
     
    GPO Tool: http://www.reg2xml.com - Registry Export File Converter
     
    Thursday, January 28, 2016 9:58 PM
  • Hi,
    A similar issue is discussed in the thread as below, please take a look and use for reference:
    Computer Boot Policy Processing Time
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/693ab5f0-1462-427a-9863-e4fb1665567d/computer-boot-policy-processing-time?forum=winserverGP

    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, January 29, 2016 7:22 AM
    Moderator
  • AFAIK you are using GPP Services, not Printers :)
     
    Enable debug logging for GPP Services and check that log against the
    GPSVC log.
     
    Friday, January 29, 2016 11:15 AM
  • Thanks so much for everyone's help - I tweaked some items on Friday but I am now getting the below, suggestions?

    Monday, February 1, 2016 5:17 PM
  • Hi,
     
    Am 01.02.2016 um 18:17 schrieb chrissezhi1:
    > Thanks so much for everyone's help - I tweaked some items on Friday but
    > I am now getting the below, suggestions?
     
    It takes some time to stop and start the servives, you defined inside
    GPP Services.
     
    Try to integrate the service configuration inside your deployment or run
    it as a script in Task Scheduler or user Security\Services.
     
    Mark
    --
    Mark Heitbrink - MVP Windows Server - Group Policy
     
    GPO Tool: http://www.reg2xml.com - Registry Export File Converter
     
    Tuesday, February 2, 2016 7:25 AM
  • Enable debug logging for GPP Services to identify what's going on inside
    this extension...
     
     
    Tuesday, February 2, 2016 9:30 AM
  • Hi,
    I am checking if the issue is gone or not, is the reply helpful to you?
    If you have any questions, please let us know.
    Appreciate your update.
    Best regards,

    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, February 5, 2016 7:34 AM
    Moderator
  • The issue is still occurring, at this point I may have to open a case with Microsoft.

    I have enabled services tracing - but still no go.

    Here is the trace - could it be the Reboot Scheduled Task possibly?

    2016-02-15 10:10:02.642 [pid=0x55c,tid=0x5b8] IsRsopPlanningMode() [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:06.569 [pid=0x55c,tid=0x5b8] Leaving ProcessGroupPolicyExServices() returned 0x00000000
    2016-02-15 10:12:06.726 [pid=0x55c,tid=0x5b8] Entering ProcessGroupPolicyExSchedTasks()
    2016-02-15 10:12:06.726 [pid=0x55c,tid=0x5b8] SOFTWARE\Policies\Microsoft\Windows\Group Policy\{AADCED64-746C-4633-A97C-D61349046527}
    2016-02-15 10:12:06.726 [pid=0x55c,tid=0x5b8] BackgroundPriorityLevel ( 7 )
    2016-02-15 10:12:06.726 [pid=0x55c,tid=0x5b8] DisableRSoP ( 0 )
    2016-02-15 10:12:06.741 [pid=0x55c,tid=0x5b8] LogLevel ( 2 )
    2016-02-15 10:12:06.741 [pid=0x55c,tid=0x5b8] Command subsystem initialized. [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:06.789 [pid=0x55c,tid=0x5b8] ----- Parameters
    2016-02-15 10:12:06.804 [pid=0x55c,tid=0x5b8] CSE GUID : {AADCED64-746C-4633-A97C-D61349046527}
    2016-02-15 10:12:06.804 [pid=0x55c,tid=0x5b8] Flags : ( X ) GPO_INFO_FLAG_MACHINE - Apply machine policy rather than user policy
    2016-02-15 10:12:06.804 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_BACKGROUND - Background refresh of policy (ok to do slow stuff)
    2016-02-15 10:12:06.804 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_SLOWLINK - Policy is being applied across a slow link
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_VERBOSE - Verbose output to the eventlog
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         ( X ) GPO_INFO_FLAG_NOCHANGES - No changes were detected to the Group Policy Objects
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_LINKTRANSITION - A change in link speed was detected between previous policy application and current policy application
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_LOGRSOP_TRANSITION - A change in RSoP logging was detected between the application of the previous policy and the application of the current policy.
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_FORCED_REFRESH - Forced Refresh is being applied. redo policies.
    2016-02-15 10:12:06.820 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_SAFEMODE_BOOT - windows safe mode boot flag
    2016-02-15 10:12:06.836 [pid=0x55c,tid=0x5b8]         (   ) GPO_INFO_FLAG_ASYNC_FOREGROUND - Asynchronous foreground refresh of policy
    2016-02-15 10:12:06.836 [pid=0x55c,tid=0x5b8] Token (computer or user SID): S-1-5-18
    2016-02-15 10:12:06.836 [pid=0x55c,tid=0x5b8] Abort Flag : Yes (0xa0498690)
    2016-02-15 10:12:06.836 [pid=0x55c,tid=0x5b8] HKey Root : Yes (0x80000002)
    2016-02-15 10:12:06.836 [pid=0x55c,tid=0x5b8] Deleted GPO List : No
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] Changed GPO List : Yes
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] Asynchronous Processing : Yes
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] Status Callback : Yes (0x11d3b100)
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] WMI namespace : No (0x00000000)
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] RSoP Status : Yes (0xa0e3e5e4)
    2016-02-15 10:12:06.851 [pid=0x55c,tid=0x5b8] Planning Mode Site : (none)
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8] Computer Target : No (0x00000000)
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8] User Target : No (0x00000000)
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8] Calculated list relevance. [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8] ----- Changed - 0
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8] Options : (   ) GPO_FLAG_DISABLE - This GPO is disabled.
    2016-02-15 10:12:06.867 [pid=0x55c,tid=0x5b8]           (   ) GPO_FLAG_FORCE - Do not override the settings in this GPO with settings in a subsequent GPO.
    2016-02-15 10:12:06.883 [pid=0x55c,tid=0x5b8] Options (raw) : 0x00000000
    2016-02-15 10:12:06.883 [pid=0x55c,tid=0x5b8] Version : 2883628 (0x002c002c)
    2016-02-15 10:12:06.883 [pid=0x55c,tid=0x5b8] GPC : LDAP://CN=Machine,cn={C8A16A8B-DA43-4DD9-A7ED-FBAC65827963},cn=policies,cn=system,DC=xxxxxxx,DC=xxxxx
    2016-02-15 10:12:06.883 [pid=0x55c,tid=0x5b8] GPT : \\xxxxxxx\SysVol\xxxxxxxxxx\Policies\{C8A16A8B-DA43-4DD9-A7ED-FBAC65827963}\Machine
    2016-02-15 10:12:06.883 [pid=0x55c,tid=0x5b8] GPO Display Name : Reboot Scheduled Task
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8] GPO Name : {C8A16A8B-DA43-4DD9-A7ED-FBAC65827963}
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8] GPO Link : (   ) GPLinkUnknown - No link information is available.
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8]            (   ) GPLinkMachine - The GPO is linked to a computer (local or remote).
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8]            (   ) GPLinkSite - The GPO is linked to a site.
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8]            (   ) GPLinkDomain - The GPO is linked to a domain.
    2016-02-15 10:12:06.898 [pid=0x55c,tid=0x5b8]            ( X ) GPLinkOrganizationalUnit - The GPO is linked to an organizational unit.
    2016-02-15 10:12:06.914 [pid=0x55c,tid=0x5b8]            (   ) GP Link Error
    2016-02-15 10:12:06.914 [pid=0x55c,tid=0x5b8] lParam : 0x00000000
    2016-02-15 10:12:06.914 [pid=0x55c,tid=0x5b8] Prev GPO : No
    2016-02-15 10:12:06.914 [pid=0x55c,tid=0x5b8] Next GPO : No
    2016-02-15 10:12:06.914 [pid=0x55c,tid=0x5b8] Extensions : [{00000000-0000-0000-0000-000000000000}{CAB54552-DEEA-4691-817E-ED4A4D1AFC72}][{AADCED64-746C-4633-A97C-D61349046527}{CAB54552-DEEA-4691-817E-ED4A4D1AFC72}]
    2016-02-15 10:12:06.930 [pid=0x55c,tid=0x5b8] lParam2 : 0xa04fafa8
    2016-02-15 10:12:06.930 [pid=0x55c,tid=0x5b8] Link : LDAP://OU=Workstations-Laptops,OU=Department,DC=xxxxxxx,DC=com
    2016-02-15 10:12:07.181 [pid=0x55c,tid=0x5b8] Purge GPH : C:\ProgramData\Microsoft\Group Policy\History\{C8A16A8B-DA43-4DD9-A7ED-FBAC65827963}\Machine\Preferences\ScheduledTasks\ScheduledTasks.xml
    2016-02-15 10:12:08.169 [pid=0x55c,tid=0x5b8] Read GPE XML data file (1881 bytes total).
    2016-02-15 10:12:08.169 [pid=0x55c,tid=0x5b8] Starting filter [AND NOT FilterGroup].
    2016-02-15 10:12:08.750 [pid=0x55c,tid=0x5b8] Completed get next GPO. [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:08.750 [pid=0x55c,tid=0x5b8] Completed get GPO list. [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:08.750 [pid=0x55c,tid=0x5b8] IsRsopPlanningMode() [SUCCEEDED(S_FALSE)]
    2016-02-15 10:12:08.766 [pid=0x55c,tid=0x5b8] Leaving ProcessGroupPolicyExSchedTasks() returned 0x00000000

    Thanks again!

    Monday, February 15, 2016 5:16 PM
  • > I have enabled services tracing - but still no go.
     
    Seems you still did not follow my advice. You need to enable debug
    logging for the GPP Services extension and then examine the log of this
    extension only - not the debug log of GPSVC :)
     
    Thursday, February 18, 2016 2:28 PM