Reset Windows Updates using a batch file

 


Sometimes updates get hung up, or won't install from the SCCM software center. You will need to reset Windows Updates. You can do this manually, or with a batch file script

net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

If that doesn't work, try this:

Net stop bits
Net stop wuauserv
Net stop appidsvc
Net stop cryptsvc
Del %ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat /Q
Del "%HOMEDRIVE%\Users\All Users\Microsoft\Network\Downloader\qmgr*.dat" /Q
Del %WINDIR%\SoftwareDistribution\*.* /s /Q
Net start bits
Net start wuauserv
Net start appidsvc
Net start cryptsvc
Pause
Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.