Share via

Post Installation tasks failed WSUS WS2019

Joan Rubio Sabio 0 Reputation points
2025-03-03T11:11:54.2466667+00:00

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

Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-03-04T08:52:40.7766667+00:00

    Hello,

    Thank you for posting in Microsoft Q&A.

    Based on the description, I understand your question is related to WSUS.

    Ensure that the installation directory specified in your UpdateServices-Services.xml file is correct and accessible. The error message indicates an "Invalid installation directory," which suggests there might be an issue with the path.

    Check that the account running the WSUS service has the necessary permissions to access the installation directory and other required folders.

    If certain folders are missing after installation, you can manually create them based on a reference installation or documentation.

    Have a nice day.

    Best Regards,

    Molly

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.