Submit a ticketCall us

AnnouncementsFace your biggest database issues head-on

Our new eCourse helps you navigate SQL Server performance blocks by teaching you how to recognize and deal with the three DBA Disruptors: Performance Hog, Blame Shifter, and Query Blocker. Register today to learn how to defend your environment and fend off menacing disruptions.

Register for your free eCourse.

Home > Success Center > Patch Manager > Patch Manager - Knowledgebase Articles > CreateDirectory Failed error when publishing updates to WSUS

CreateDirectory Failed error when publishing updates to WSUS

Updated September 6, 2018

Overview

The following error message appears when trying to publish packages:

Package: yourPackage
Status: Failure
Message: Failed to publish yourPackage. CreateDirectory failed

Environment

  • All Patch Manager versions
  • All WSUS versions

Cause

This issue can occur if you move or recreate the UpdateServicesPackages and WSUSContent folders after installing Patch Manager, or explicitly remove the share:

  • The permissions on the UpdateServicesPackages and WSUSContent folders are not set correctly.
  • The UpdateServicesPackages and WSUSContent folders are not shared at all.

Resolution

On your WSUS servers, the WSUSContent and UpdateServicesPackage folders do not have a default location. Typically, it is C:\WSUS or D:\WSUS but is manually specified when the WSUS server is set up.

 

  1. Set the security permissions for WSUSContent and UpdateServicesPackages as follows:
    Setting Permission
    NT AUTHORITY\SYSTEM Full Control
    NT AUTHORITY\NETWORK SERVICE

    Write

    Read

    Synchronize

    Builtin\administrators Full Control
    Hostname\Wsus Administrators FullControl
  2. Set the share permissions for WSUSContent and UpdateServicesPackages as follows:
    Setting Permission
    Builtin\Administrators Full
    Everyone Read
    NT Authority\Network Service Full
    Hostname\WSUS Administrators Full
  3. (Optional) Run the following PowerShell command on the WSUS server to read all the permissions at the same time.
    Get-SmbShareAccess -Name UpdateServicesPackages|ft; Get-SmbShareAccess -Name WsusContent|ft;$acl=Get-Acl "\\localhost\WsusContent";$acl|ft AccessToString -Wrap; $acl2=Get-Acl "\\localhost\UpdateServicesPackages";$acl |ft AccessToString -Wrap
    

 

 

Reason for Rework or Feedback from Technical Content Review: 

 

 

Last modified

Tags

Classifications

Public