Feature to Cleanup SoftwareDistribution repo

BatchPatch Forums Home Forums BatchPatch Support Forum Feature to Cleanup SoftwareDistribution repo

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12464
    scrantic
    Participant

    Hi, In our environment I periodically receive 102: Failed to execute the search. HRESULT: -2145107945 on some hosts.

    This is resolved by:

    1. Stop the Windows Update service by running the following command:
    NET STOP WUAUSERV
    2. Rename the C:\Windows\SoftwareDistribution folder to C:\Windows\SoftwareDistribution.old.
    3. Start the Windows Update service by running the following command:
    NET START WUAUSERV

    It would be great if under the windows update options menu there was a reset software repository command that triggered this process.

    #12465
    doug
    Moderator

    We’ll consider this.

    FYI you could also put this into a 3 line bat/cmd file. Then create a BP deployment to deploy that bat/cmd file whenever you want. Or you could make it a powershell script and either create a deployment for it the .ps1 file, or don’t even put it in a .ps1. Instead you could just combine the three lines into a single line with each command separated by a semi-colon. Then run it as a BP remote command.

    -Doug

    #12466
    scrantic
    Participant

    Thanks Doug, I might try the single line command with semi-colons I did think about that but wasn’t sure that simples approach for a 3 line command. I think it in general would be good to have some of the remediation options for windows update scannings failing included in Windows updates menu.

    There also seems to be numerous Failed to execute the search. HRESULT responses that just are not documented anywhere. A lot of the ones I encounter 2145107952 for example are not in the batch patch KB.

    #12467
    doug
    Moderator

    We have never seen nor had anyone report these two errors:

    0x80244017 -2145107945 SUS_E_PT_HTTP_STATUS_DENIED Http status 401 - access denied

    SUS_E_PT_HTTP_STATUS_DENIED seems like it would be a result of a permissions issue on your WSUS server’s IIS instance. I’m not sure how/why it would be fixed by resetting Windows Update on the target, but I’m glad that worked for you.

    0x80244010 -2145107952 SUS_E_PT_EXCEEDED_MAX_SERVER_TRIPS The maximum allowed number of round trips to the server was exceeded

    I don’t quite know what to make of SUS_E_PT_EXCEEDED_MAX_SERVER_TRIPS. It’s very peculiar. My guess is it would either be related to your WSUS server’s IIS configuration, or perhaps it could be the result of some weird network behavior or problematic routing configuration.

    #12468
    doug
    Moderator

    FYI we just tested this: You can use the following syntax inside of a single ‘Remote Command’ in BatchPatch:

    NET STOP wuauserv & MOVE C:\Windows\SoftwareDistribution C:\Windows\SoftwareDistribution.old & NET START wuauserv

    If you then save the command, you’ll be able to trigger it directly from the BatchPatch menu at any time.

    #12469
    scrantic
    Participant

    Thanks Doug, I’ll give it a crack.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.