I'm trying to perform a clean reinstallation on a Server that hosts SCCM principal Site, and WSUS.
When I try running post Installation tasks, the following error appears:
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
The Content of UpdateServices-Services.xml 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>
The Steps i followed to perform a clean Uninstallation where:
-Remove Software Update Point role on all sites that had it (SCCM)
-Remove WSUS role from Server Manager, (WID also removed)
-Delete Content Folder T:\WSUS, Installation folder C:\Program Files\Update Services and WID folder C:\Windows\WID
-Delete Registry keys HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate
-Detatch SUSDB Database from SQL Server instance on remote server, and delete SUSDB.mdf and SUSDB_log.ldf
-Remove site and Application Pool from IIS
However, every time I perform a clean uninstallation and add the role again, the C:\Program Files\Update Services is missing 3 folders, Api, Schema and tools.
For those folders to appear, i need to run sfc /scannow after the installation finishes, and then launch Post installation tasks
When i launch it, i get the error i specified above
The Directory that contains UpdateServices-Services.xml has modify permissions to the Network Service account, so i Think it wouldn't be access related
Thanks In advance, y really need help!