Use this article to move the contents of WSUS; usually needed for data migration or fixing a broken content store.
When the ..\UpdatesPackages folder of WSUS is moved without using the WsusUtil.exe tool e.g. when enabling SSL on WSUS, then you will experience issues in publishing 3rd party patches from Software Vulnerability Manager because the change of location for the update repository is not documented.
1) Use File Explorer to move the content of C:\Updates or the entire folder C:\Updates.
2) Publish a package from the Software Vulnerability Manager, and you get the error message:
Code: -2147467259 CreateDirectory failed.
The original location is C:\Updates and the folder contains 2 other folders 'C:\Updates\UpdateService Packages' and 'C:\Updates\WsusContent'.
The WsusUtil.exe will move the content of the Updates folder which includes the two subfolders, so if only one of the subfolders has been moved to a different location it is important to move it back to the original location before using the WsusUtil.exe to move both subfolders to the desired location.
To move the content of C:\Updates to D:\Updates, use the following command:
wsusutil movecontent D:\Updates D:\Updates\movelog.txt
In case, the intention was to move the two subfolders from C:\Updates to D:\Updates and all the data has already been moved/copied to the new location on D:\Updates or if you wish not to move the content, the procedure would be to use the following command:
wsusutil movecontent D:\Updates D:\Updates\movelog.txt -skipcopy
This command will register the new location in the WSUS configuration, but it will not copy the data from the original location.
If the content of C:\Updates was moved with File Explore, then use File Explorer to move it back to the original location.
Reference: https://technet.microsoft.com/en-us/library/cc720466(v=ws.10).aspx
Please also note that 'wsusutil' takes some time to move the content and configure all of the permission correctly. The process can take to many hours - depending upon the size of updates and resources available to the server itself. We recommend to create the log and look for successful completion messages.
on Feb 06, 2019 08:13 PM - edited on Sep 07, 2020 05:15 AM by wmahmood