- Stop the following services via PowerShell
stop-service WSUSService, W3SVC
- Open up SQL Management Studio and delete the “SUSDB”
- Next you need to delete the content directory. In my case it is called “S:\WSUS”. Delete the folder and all its contents. If you need to find where your content directory is stored open up regedit and navigate to the following location under the key named “ContentDir” it will have location specified.
HKLM\Software\Microsoft\Update Services\Server\Setup\
- Now recreate the folder called WSUS
- Start the following services via PowerShell
start-service WSUSService, W3SVC
- Open PowerShell and navigate to the following location “C:\Program Files\Update Services\Tools”. Run the following command. This will perform the reinstallization of the SUSDB. When running this on a high powered machine with SSDs it still took around 15 minutes to complete.
#Example Syntax #If your SQL Instance is named you must include the server and the instance name such as "INSTA-SCCM1\S1" .\Wsusutil.exe postinstall SQL_INSTANCE_NAME=”Server\Instance” CONTENT_DIR=”<drive>:\WSUS” #In my case it looks like this, I do not need to specify the instance as it is the default instance .\Wsusutil.exe postinstall SQL_INSTANCE_NAME=”INSTA-SCCM1” CONTENT_DIR=”S:\WSUS”
7. Once completed open up the WSUS Console itself and follow the wizard to start the First Synchronization. The initial synchronization can take several hours to complete depending upon the amount of products selected.
Leave a Reply