I'm trying to perform a clean reinstallation on a Server that serves as SCCM principal Site and WSUS.
WSUS started having numerous problems and had to reinstall it
Since I tried to perform a clen uninstall, i will detail the Steps I followed
-Removed Software Update Point Role on any sites (SCCM)
-Removed WSUS role from Server Manager (WID also Removed)
-Deleted content folder (T:\WSUS) and Installation folder (C:\Program Files\Update Services)
-Deleted Registry Keys HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate
- Deleted WID folder (C:\Windows\WID)
-Detatched SUSDB database and deleted .mdf files (We use SQL Database on a remote server, same SQL database as SCCM)
-Removed App Pool and Site from IIS
Installation seems to perform correctly but i detected that some Folders where missing on C:\Program Files\Update Services, as Tools, Schema or Api, and after I perform the installation, i need to execute SFC /SCANNOW so it creates those folders and files.
After the installation finished and ran SFC /scannow, and run Post installation Tasks, the error i get is:
2025-03-03 11:33:24 Postinstall started
2025-03-03 11:33:24 Detected role services: Database, Services
2025-03-03 11:33:24 Start: LoadSettingsFromXml
2025-03-03 11:33:24 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2025-03-03 11:33:24 System.TypeInitializationException: The type initializer for 'Microsoft.UpdateServices.Internal.UtilConstants' threw an exception. ---> System.IO.InvalidDataException: Invalid installation directory
at Microsoft.UpdateServices.Internal.SetupInfo.GetInstallDirectory()
at Microsoft.UpdateServices.Internal.UtilConstants..cctor()
--- End of inner exception stack trace ---
at Microsoft.UpdateServices.Administration.PostInstall.GetConfigValue(String filename, String item)
at Microsoft.UpdateServices.Administration.PostInstall.LoadSettingsFromXml()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: The type initializer for 'Microsoft.UpdateServices.Internal.UtilConstants' threw an exception.
My UpdateServices-Services.xml File content is:
<?xml version="1.0" encoding="utf-16"?><INSTANCE CLASSNAME="ServerComponent_UpdateServices_Services"><PROPERTY NAME="ContentDirectory" TYPE="string"><VALUE>T:\WSUS</VALUE></PROPERTY><PROPERTY NAME="ContentLocal" TYPE="boolean"><VALUE>true</VALUE></PROPERTY></INSTANCE>
Hope Someone can give me a helping hand, I definetly need it