Categories
Microsoft

Microsoft WSUS Rebuild

To re-install WSUS with a clean database i.e. no previous configuration:

Run Windows Powershell as Administrator and use the following commands:

  • Uninstall-WindowsFeature -Name UpdateServices,Windows-Internal-Database -Restart

 

  • Post restart, delete EVERYTHING in the C:\Windows\WID\ (for Win 2012 r2) folder.

 

  • Then run the following command to re-install WSUS:
    Install-WindowsFeature UpdateServices -Restart

 

This only works on PowerShell 3 or higher.

 

UPDATE
I had to run the postinstallation tasks manually via Powershell using the WID db, if using SQL you need to add in sql_instance=

C:\Program Files\Update Services\Tools\WsusUtil.exe content_dir=”<<dir of update download location>>

 

creds: https://serverfault.com/questions/449914/how-to-completely-wipe-wsus-and-start-again

Categories
Microsoft

WSUS Installation

Attempting to install WSUS on server 2012 and then reinstall it.

 

The initial install went fine:

1/ Prepare security on directories: [Network Service] needs RWX on [%windir%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files] and [%windir%\Temp] and [D:\WSUS] folders

2/ Either select [WIndows Server Update Services] role from the GUI or in an elevated Powershell:

Install-WindowsFeature -Name UpdateServices -IncludeManagementTools 

3/ Launch postinstallation tasks through the GUI or Powershell command below. NOTE:  if this is a reinstall then be sure to delete the previous database [SUSDB] from [C:\Windows\WID\Data]

 C:\Program Files\Update Services\Tools\wsusutil.exe postinstall CONTENT_DIR=D:\WSUS