Broken WSUS on SCCM

NP 471 Reputation points
2022-03-09T03:32:34.52+00:00

our wsus component of SCCM is broken. We went thru the process of uninstalling/installing WSUS and its failing at the post installation steps. The strange thing is that after it fails wsus still launches and SCCM can do its sync.

This is the log. I have tried running the command version of the post installation and i get the same result.

Apart from going sort of nuclear and removing wsus again, is there anything else i can try? I have followed this post for ideas

https://social.technet.microsoft.com/Forums/windows/en-US/bd8204ee-ad38-4d58-a289-305d8a370ea8/wsus-reinstallation-fails?forum=winserverwsus

2022-03-09 14:08:01 Fetching ContentDir from registry store
2022-03-09 14:08:01 Value is F:\Source\Updates\WSUS
2022-03-09 14:08:01 Swtching DB to multi-user mode......
2022-03-09 14:08:01 Finished setting multi-user mode
2022-03-09 14:08:01 Writing DB settings to registry...
2022-03-09 14:08:01 Marking PostInstall done for UpdateServices-Database in the registry...
2022-03-09 14:08:01 Starting service W3SVC
2022-03-09 14:08:01 Configuring IIS...
2022-03-09 14:08:01 Start: ConfigureWebsite
2022-03-09 14:08:01 Configuring website on port 8530
2022-03-09 14:08:02 System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Microsoft.UpdateServices.Administration.UseCustomWebSite.ExecuteIisCustomAction(String arguments)
at Microsoft.UpdateServices.Administration.UseCustomWebSite.InstallAndConfigure(IisConfiguration& iisConfiguration, Int32 newPortNumber)
at Microsoft.UpdateServices.Administration.UseCustomWebSite.CreateWebsite(Int32 newPortNumber)
at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)

Microsoft Security | Intune | Configuration Manager | Updates
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Adam J. Marshall 10,456 Reputation points MVP
    2022-03-09T04:04:01.533+00:00

    Try using my guide's removal and reinstall commands:
    https://www.ajtek.ca/wsus/how-to-remove-wsus-completely-and-reinstall-it/

    If that still doesn't work, what's the postinstall command you're using?


2 additional answers

Sort by: Most helpful
  1. Adam J. Marshall 10,456 Reputation points MVP
    2022-03-09T22:07:33.327+00:00

    Did you previously try deleting the WSUS Administration website like indicated in my guide (#3)?

    0 comments No comments

  2. Rita Hu -MSFT 9,661 Reputation points
    2022-03-10T01:54:31.293+00:00

    @NP
    Please follow the below steps to remove the WSUS role completely first and then we could try to reinstall the WSUS role:
    To remove the WSUS completely, you need to:
    a. Remove the following server roles and features through Server Manager:
    Roles: Windows Server Update Server
    features: Windows Server Update Services Tools(at Remote Server Administration Tools -> Role Administration Tools)
    Follow the wizard prompts to complete the deletion. Then restart the server.

    b. After the server is restarted, manually delete the folder or file of the following path:

    • C:\WSUS (this depends on where you choose to install the WSUS)
    • C:\Program Files\Update Services

    c. Delete database files
    If you use SQL Server Management Studio to delete a database, you can try as follow:
    In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance. Expand Databases, right-click the database to delete, and then click Delete. Confirm the correct database is selected, and then click OK.

    If you use a WID database, it is recommended to delete the following path folders:
    C:\Windows\WID

    d. In the IIS Information Services (IIS) Manager, manually remove the WSUS Administration site. Then restart the server.

    Please consider restarting your computer and then reinstalling WSUS after finishing above steps.

    Best regards,
    Rita


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.