How To: Enable Failed Policy Retry More Frequently Than Every 24 Hours

Version 7

    Verified Product Versions

    Endpoint Manager 9.6Endpoint Manager 2016.xEndpoint Manager 2017.x

     

    Distribution and Patch Agent Settings

     

    To adjust the frequency in which failed policies retry navigate to the following location:

    Tools | Configuration | Agent Settings | Distribution ad Patch

      

     

    Double-click or right-click and select properties on the desired Distribution and Patch Agent Setting. From this interface, under General Settings select Policy sync schedule:

     

    FailedPolicyRetryAttempts.jpg

     

    *Note this is only applicable to REQUIRED policies, an optional or recommended policy will not follow this logic.

     

    What is read in order for policy sync to know, "I failed and I need to retry"?

     

    All client policy files are accompanied by a status file (.stat) contained in the following directory:

     

    Programdata\landesk\policies 

     

    The status file is not downloaded but created by policysync.exe. The status file is dynamically updated as sdclient.exe processes the client policy xml file. Upon process termination, the final result is written to the status file outlining the return code. If the return code value equates to a failure the policy file will be re-tried as dictated by the retry interval.The Status attribute in the .stat file will show 5 if failed, 4 if successful.

     

    Example successful status file:

     

    <?xml version="1.0" encoding="utf-8"?><PolicyStatusInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <TaskIdn>1054</TaskIdn>
    <DownloadPercentage>0</DownloadPercentage>
    <TotalDownloadSize>4203840</TotalDownloadSize>
    <Status>4</Status>
    <Result/>
    <ReturnCode>229965824</ReturnCode>
    <CurrentInstallingPackage>1</CurrentInstallingPackage>
    <LastRunTime>1466182576</LastRunTime>
    <Deferrals>0</Deferrals>
    </PolicyStatusInfo>
       

     

    Example of a failed status file:

     

    <?xml version="1.0" encoding="utf-8"?><PolicyStatusInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <TaskIdn>2070</TaskIdn>
    <DownloadPercentage>0</DownloadPercentage>
    <TotalDownloadSize>73</TotalDownloadSize>
    <Status>5</Status>
    <Result/>
    <ReturnCode>1917512813</ReturnCode>
    <CurrentInstallingPackage>1</CurrentInstallingPackage>
    <LastRunTime>1466687545</LastRunTime>
    <Deferrals>0</Deferrals>
    </PolicyStatusInfo>
       

     

    Please reference  How to Interpret Client Policy .Stat file Status Codes to decipher the return codes.