Security Compliance
Cannot publish a package in Patch Manager to the WSUS server
This article helps you troubleshoot an error that displays when you publish a package to your WSUS server. Error: Package: yourPackage Status: Failure Message: Failed to publish yourPackage. CreateDirectory failed.
First published date
Last published date
Overview
When you publish a package to your WSUS server, the following error displays in the console:
Error: Package: yourPackage Status: Failure Message: Failed to publish yourPackage. CreateDirectory failed.
You may also see packages in the console getting published, but the state of the packages is Failed to Download / Installation Not Possible.
Product section
Cause
Issues with the WSUS configuration. The permissions on the following folders are not set correctly and the folders are not shared:
- \\WSUSServer\UpdateServicesPackages
- \\WSUSServer\WSUSContent
Resolution
Correct the share and security permissions on the following folders:
- \\WSUSServer\UpdateServicesPackages
- \\WSUSServer\WSUSContent
The share is required for Patch Manager to publish files locally to the WSUS server.
Correct the permissions on the UpdateServicesPackages and WSUSContent(root) folder
This procedure applies to systems running Windows Server 2012 and 2016. Server.
- Locate the
UpdateServicesPackagesand WSUSContent folders on your WSUS server. - Ensure the SYSTEM account owns the folder.
- Ensure the folder is shared with the following share permissions:
- Full Control: Administrators, NETWORK SERVICE, WSUS Administrators
- Read: Everyone/users
- Ensure the folder has the following security permissions:
- Full Control: Administrators, SYSTEM, WSUS Administrators
- Read, Write: NETWORK SERVICE
- List Folder Contents, Read, Read & Execute: Users/Everyone
- In the Patch Manager console, ensure the credential mapped to access the WSUS server is a member of the Administrators and WSUS Administrators group on the WSUS server
Verify the repair
- Log in to the Patch Manager server using the credential assigned to the WSUS server.
- Map a drive to the \\WSUSServer\UpdateServicesPackages and \\WSUSServer\WSUSContent folders.
If you are able to map the drive, Patch Manager should be able to publish updates to the WSUS server.