Invoke-WsusServerCleanup Fails with HTTP status 403: Forbidden

AU_Michael 1 Reputation point
2021-02-15T21:41:35.377+00:00

I decided to run the cleanup wizard on my WSUS server recently and it crashes almost immediately with the reset server node error.

I went to PowerShell and I am getting the following error:

68378-image.png

Any thoughts on why I am getting the error or how to correct it? The ServerIsInvalid is troubling, but I have no thoughts on how to go about fixing it. The server is fully operational otherwise and is configured to use SSL.

Appreciate any assistance.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,960 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Adam J. Marshall 9,376 Reputation points MVP
    2021-02-16T14:38:06.447+00:00

    Are you performing the proper WSUS maintenance including but not limited to declining superseded updates, running the SQL Indexing script, etc.?

    The Server Cleanup Wizard (SCW) is only 1 component of WSUS Maintenance.

    https://www.ajtek.ca/wsus/how-to-setup-manage-and-maintain-wsus-part-8-wsus-server-maintenance/


  2. Adam J. Marshall 9,376 Reputation points MVP
    2021-02-16T18:43:11.57+00:00

    What's your private memory limit set to?

    https://www.ajtek.ca/wsus/wsus-system-requirements-what-should-i-plan-for/

    Assuming this is virtual, what's your vCPUs set to?

    And yes, our site was having issues this morning. We're working with our host to resolve them. It's currently up.


  3. Adam J. Marshall 9,376 Reputation points MVP
    2021-02-16T19:11:51.473+00:00

    Is the WsusPool application pool started? If not, start it. If it is, increase it to 8GB and restart it.

    If you have WAM, from the WAM Shell:

    .\Clean-WSUS.ps1 -SetApplicationPoolMemory 8192

    This also restarts the App Pool so you don't need to do it yourself.

    Then try it again.


  4. Adam J. Marshall 9,376 Reputation points MVP
    2021-02-17T01:41:47.707+00:00

    Proxy server or firewall in the mix?


  5. Adam J. Marshall 9,376 Reputation points MVP
    2021-02-18T00:35:29.65+00:00

    Verify that the settings in Windows are accurately reporting no proxy server:

    From PowerShell:

    Write-Output "Proxy: $(netsh winhttp show proxy)"


Your answer

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