Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

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
09:18, 24 May 2017

Tags

Classifications

Public