Stop Pending Windows Updates

This is how would stop the Windows Update Service from installing pending updates.

Just add to a script of your choice

sc stop wuauserv
sc config wuauserv start= disabled
c:
cd\windows\SoftwareDistribution
ren “Download” “Download_STOPPED”
takeown /f C:\Windows\winsxs\reboot.xml
takeown /f C:\Windows\winsxs\pending.xml
echo y|cacls C:\Windows\winsxs\reboot.xml /p everyone:f
echo y|cacls C:\Windows\winsxs\pending.xml /p everyone:f
del /q C:\Windows\winsxs\reboot.xml
del /q C:\Windows\winsxs\pending.xml
reg.exe delete “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired” /f
reg.exe delete “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer” /v InProgress /f

email me