Submit a ticketCall us

ebook60.pngHow to be a Cisco® ASA ace

Our eBook, Thou Shalt Not Pass…I Think?! can help you overcome the challenges of monitoring and managing Cisco ASA firewalls. This eBook is a great read if you’ve been frustrated with monitoring firewalls, managing ACL configs, and troubleshooting VPN connections.

Get your free eBook.

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

CreateDirectory Failed error when publishing updates to WSUS

Updated March 11th, 2016

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. There is no default location for this folder. Tyically it is C:\WSUS or D:\WSUS but is manually specified when the wsus server is setup.

 

1. Set the security permissions for WSUSContent and UpdateServicesPackages as follows:

  • 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:

  • Builtin\Administrators - Full
  • Everyone - Read
  • NT Authority\Network Service - Full
  • Hostname\WSUS Administrators - Full

 

Optional: Use the following PowerShell command to get read all the permissions at the same time.

You must run this command on the WSUS server.

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