Why are there 2 identical replies? Lester BernardReyes ???
I ran the Powershell commands as indicated and had lots of errors reported,
Why was this code not tested?
Here is the log of my session (with errors)
https://answers.microsoft.com/en-us/windows/forum/all/update-failed/3c937018-738b-4c5e-97dd-41f6e52b1c0e
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
^PS C:\Windows\system32> net stop bits^
^The Background Intelligent Transfer Service service is stopping..^
^The Background Intelligent Transfer Service service was stopped successfully.^
^^
^PS C:\Windows\system32> net stop wuauserv^
^The Windows Update service is stopping.^
^The Windows Update service was stopped successfully.^
^^
^PS C:\Windows\system32> net stop appidsvc^
^The Application Identity service is not started.^
^^
^More help is available by typing NET HELPMSG 3521.^
^^
^PS C:\Windows\system32> net stop cryptsvc^
^The Cryptographic Services service is stopping..^
^The Cryptographic Services service was stopped successfully.^
^^
^PS C:\Windows\system32> Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"^
^Del : Cannot find path 'C:\Windows\system32%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader' because^
^it does not exist.^
^At line:1 char:1^
^+ Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\ ...^
^+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
^+ CategoryInfo : ObjectNotFound: (C:\Windows\syst...work\Downloader:String) [Remove-Item], ItemNotFoundEx^
^ception^
^+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand^
^^
^PS C:\Windows\system32> rmdir %systemroot%\SoftwareDistribution /S /Q^
^Remove-Item : A positional parameter cannot be found that accepts argument '/S'.^
^At line:1 char:1^
^+ rmdir %systemroot%\SoftwareDistribution /S /Q^
^+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
^+ CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException^
^+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand^
^^
^PS C:\Windows\system32> rmdir %systemroot%\system32\catroot2 /S /Q^
^Remove-Item : A positional parameter cannot be found that accepts argument '/S'.^
^At line:1 char:1^
^+ rmdir %systemroot%\system32\catroot2 /S /Q^
^+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
^+ CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException^
^+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand^
^^
^PS C:\Windows\system32> regsvr32.exe /s atl.dll^
^PS C:\Windows\system32> regsvr32.exe /s urlmon.dll^
^PS C:\Windows\system32> regsvr32.exe /s mshtml.dll^
^PS C:\Windows\system32> netsh winsock reset^
^^
^Sucessfully reset the Winsock Catalog.^
^You must restart the computer in order to complete the reset.^
^^
^PS C:\Windows\system32> netsh winsock reset proxy^
^^
^Sucessfully reset the Winsock Catalog.^
^You must restart the computer in order to complete the reset.^
^^
^PS C:\Windows\system32> net start bits^
^The Background Intelligent Transfer Service service is starting.^
^The Background Intelligent Transfer Service service was started successfully.^
^^
^PS C:\Windows\system32> net start wuauserv^
^The Windows Update service is starting.^
^The Windows Update service was started successfully.^
^^
^PS C:\Windows\system32> net start appidsvc^
^The Application Identity service is starting.^
^The Application Identity service was started successfully.^
^^
^PS C:\Windows\system32> net start cryptsvc^
^The requested service has already been started.^
^^
^More help is available by typing NET HELPMSG 2182.^
^^
^PS C:\Windows\system32>^