Knowledge Base - Patch Publish Failed - CreateDirectory failed

 

Problem

You are trying to publish the patches to SCCM server and you get the error : "Publish Failed".

Cause

This could be due to one of the following reasons:

  1. Patch Connect Plus is unable to access WSUS content folder. 
  2. "UpdateServicesPackages" does not exist in the WSUS content directory

Resolution

To access WSUS content folder follow the below steps,

    1. Navigate to WSUS content folder. For eg, C:\WSUS 

Navigation to WSUS content

    1. Share the directories "UpdateServicesPackages" and  "WsusContent" and set the permissions to the following groups,
      • Admin's Group Full access
      • Network Service Full access
      • Everyone Read access
      • WSUS Administrators group full access

WSUS content properties

Share the folder

Permission

Choose group or user name

  1. Set NTFS permissions to the following groups and ensure that you provide Full Control to the following groups to access the WSUS content folder.
    • Admin's Group Full access
    • Network Service Full access
    • System full access
    • WSUS Administrators group full access
    • Users Group Read/List Folder Read & Execute

To check if "UpdateServicesPackages" exist follow the below steps,

  1. Ensure that the "UpdateServicesPackages" exist in the WSUS content directory, if it does not exist create it by moving the content to a temporary location and then move it back to the desired path using the following steps,
    1. On the system where you have installed WSUS server open command prompt with administrative privilages.
    2. Navigate to %programfiles%\update services\tools and execute the command - WSUSUtil.exe movecontent <content path> <log path>

      Note: The below example applies for moving the content to the temporary folder,

      <content path> = Drive letter of WSUS folder location (i.e. E:\Temp_WSUS_Content_Folder)
      <log path> = Drive letter of log path with log file specified (i.e. C:\Temp\move.log)

      Note: The below example applies for moving the content to the original folder,

      <content path> = Drive letter of WSUS folder location (i.e. C:\WSUS)
      <log path> = Drive letter of log path with log file specified (i.e. C:\Temp\move.log)

In case if this problem continues, kindly Contact Support

Keywords: Third-party patch management, Download Patches, Patch Publish failed