BatchPatch Forums Home › Forums › BatchPatch Support Forum › Feature to Cleanup SoftwareDistribution repo
- This topic has 5 replies, 2 voices, and was last updated 4 years, 3 months ago by scrantic.
-
AuthorPosts
-
August 16, 2020 at 6:27 pm #12464scranticParticipant
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 WUAUSERVIt would be great if under the windows update options menu there was a reset software repository command that triggered this process.
August 16, 2020 at 10:40 pm #12465dougModeratorWe’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
August 16, 2020 at 11:20 pm #12466scranticParticipantThanks 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.
August 16, 2020 at 11:36 pm #12467dougModeratorWe 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.
August 17, 2020 at 3:06 pm #12468dougModeratorFYI 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.
August 17, 2020 at 6:00 pm #12469scranticParticipantThanks Doug, I’ll give it a crack.
-
AuthorPosts
- You must be logged in to reply to this topic.