Patch for SCCM Scheduled Publication Task - Failed to schedule the task using the Microsoft Scheduler.

Version 4

    Purpose

     

    The purpose of this document is to discuss the cause of the error "Failed to schedule the task using the Microsoft Scheduler. Please verify the user name and password." when trying to schedule an automated publication task in the Patch for SCCM plugin.

     

    Symptoms

     

    When attempting to schedule a publication task, the error mentioned will appear when trying to save the task.

     

     

    In the Shavlik Patch.log file, the logs would show the following:

     

    Exception: Task Scheduler  -  A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)      Shavlik Patch      4/10/2018 10:22:15 AM 1 (0x0001)

    Some domain policy settings prevent scheduled tasks.  Check with your network administrator or if applicable, try using the setting of 'Now'.      Shavlik Patch      4/10/2018 10:22:15 AM 1 (0x0001)

     

    Cause

     

    This issue is caused by a setting in Local Security Policy that prevents storage of passwords and credentials being enabled. 

     

     

     

    Resolution

     

    Change the setting for Network access: Do not allow storage of passwords and credentials for network authentication from Enabled to Disabled. This change can be done from Local Security Policy on a specific machine or from GPO.

     

    Local Security Policy

     

         1. Launch a run window (Win+R) and search secpol.msc

     

         2. When Local Security Policy loads, go to Local Policies > Security Options.

     

         3. Find the setting 'Network access: Do not allow storage of passwords and credentials for network authentication' in the list. Right-click and go to Properties.

     

         4. In the properties window, change the setting from 'Enabled' to 'Disabled'. Then click 'Apply' to save the change.

     

     

    Group Policy Editor

     

         1. Load Group Policy Management from a domain controller or machine with RSAT tools installed.

     

         2. Right-click on the policy that you wish to modify, then click 'Edit'.

     

     

         3. Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.

     

     

         4. Find the setting 'Network access: Do not allow storage of passwords and credentials for network authentication' in the list. Right-click and go to Properties.

     

         5. In Properties window, check the box for 'Define this policy setting' and ensure the setting is configured to 'Disabled'. Click 'Apply' to save the changes.

     

     

         6. After saving, go to SCCM server and force the Group Policy to be updated by opening an admin command prompt, then run the command: gpupdate /force

     

     

         7. After making the change, return to the Ivanti Patch for SCCM plugin, and save the scheduled auto-publishing task. If successful, the following message will show:

     

     

    Additional Information

     

    https://blogs.technet.microsoft.com/askperf/2012/04/18/task-scheduler-error-a-specified-logon-session-does-not-exist/

     

     

    Affected Products

     

    Ivanti Patch for SCCM 2.3+