- Stop Windows Update service
- How to stop Windows update service
- Update service restarts automatically
- How to start windows update
- Windows 10 Restart with Update
- Replies (19)
- Сброс настроек службы обновлений Windows Update
- Средство устранения неполадок Центра обновления Windows
- Сброс настроек Windows Update из командной строки
- Скрипт Reset Windows Update Agent
Stop Windows Update service
This post explains how to stop Windows update service from command line(CMD). Make sure that you open elevated administrator command prompt to execute this command.
How to stop Windows update service
Do the following
- Open elevated command prompt
- Run the below command.
Update service restarts automatically
It’s observed that just stopping the service does not work in some cases and it restarts automatically. In such cases one can disable the service completely by running below command.
Note that these commands to stop or disable service should be run from elevated administrator command prompt. Other wise you will get the following error.
How to start windows update
Neat tip. However, it seems W7 is automatically restarting the Windows Update service every now and then. I’ve changed status to “Manual” under services.msc but the behavior remains. No fun at all.
Hi Carl
FYI everytime you go into windows update it will start the service even though it is set to manual so if you need to look in windows update then stop the service again afterwards.
Run CMD as Admin and “sc config wuauserv start= disabled” will work on Win7Ulti
Please help me to stop the windows update, it is a disaster every time after windows update, totally stupid program, may be next time I should go for apple.
you gott the error because you have’nt run cmd as administrator
Apple is more stupid than the windows.
I cannot get windows update to stop, finish, or go away! How do I get this to stop so I can get back on the computer? It’s a brand new computer, and useless at this point!
Set to disabled and reboot!
Wow thank you for putting this line up here. I needed to restart my windows update and this did the trick
Yes – agreed thanks much appreciated! On a very slow connection so bandwidth is at a premium. This made things much more pleasant.
#Persistent
interval = 600 ; execution interval in seconds
Menu, Tray, Add ; divider line
Menu, Tray, Add, Execute Now, StopService
Menu, Tray, Default, Execute Now
timer_param := -1000 * interval
StopService:
Run %comspec% /c “sc query wuauserv | find “1 STOPPED” & if errorlevel 1 sc stop wuauserv”, , Hide
time = %A_Now%
time += %interval%, seconds
FormatTime, time_string, %time%, Time
Menu, Tray, Tip, Stop Windows Update Service`nNext Execution at %time_string%
SetTimer, StopService, %timer_param%
return
Hi! even thou i star cmd as admin i still get the “error 5 access denied. can someone help me?
go to start menu —> type “cmd” in the search box, wait till cmd shows in the results list, right click on “cmd” and select “run as administrator”
You need to run it from elevated command prompt.
otherwise, check your UAC and if it’s off, turn it on in your account settings.
This information is for those who wish to completely disable Windows 10 automatic updates. It is very simple and requires no real expertise.
1. Bring up your task manager.
2. Select the “Services” tab.
3. Scroll down the lefthand side until you see “wuauserv”. (In the description column to the right, you’ll see “Windows Update”.)
4. Right click on “wuauserv”.
5. In the dropdown box that appears, click on “stop”.
This stops all automatic updates from taking over your computer. In order to get future updates, you will have to follow the same steps, but click on “start” to restart it. I prefer simply to go to Microsoft’s website to find the updates, if I want them at all, which I don’t. I’ve struggled with Microsoft’s updates for years, from Windows 7, Windows 8, Windows 8.1, and now Windows 10. All of them have rendered my computer(s) less functional than they were prior to the updates.
I use a separate security program in conjunction with Windows firewall and find that there is absolutely no need to upload their security updates.
hi, I am having endless problems with my surface pro3, running win10pro. the overwhelming majority of my time spent on this device is occupied by trying to update and keep in functioning without sending me endless notifications. I am an aspiring Linux user, which so far as I can tell, is superior in every way, however, I am concerned if the security is dependable…? I was wondering what the security program is that you referenced? and would be eager to hear any other suggestions/tips/opinions?
I tried this and got a message that access is denied.
Same problem on my PC. Svchost.exe takes continuously almost 100% processor time.
Stopped wuauserv in the way described above and the processor is free. However after a restart it is running again. Same after stopping it via the command: net stop wuauserv.
Anybody knows how I can stop this wuauserv forever.
You need to disable the service using sc command. Added these commands in the post.
Hi all, a tip for all of those having issues with Windows update, if you go to services.msc and stop the service in the second tab you can select a user to run the service with afterwards.
So you only need to put a valid user and then change the password of that user and voila! it wont ever be able to run again since it will be trying to run with an invalid user… 🙂
I wind up stopping and disabling this service every day or two, yet somehow Windows keeps turning it back to Automatic and running it! (on an older laptop which has to stay at XP)
Just want to say Thank YOU! I got nearly crazy (even more than normal) because my laptop was making so much noise while windows was checking updates for hours. Tried to close it through task manager to no avail but this tip worked as a charm.
I had no problems at all that was until windows installed updates and I could not get into windows anymore. Thanks no thanks. So now I am going to try to see if I can download the updates one by one or so. Thanks again. Love the sound of silence
Surely it would be much easier to use computer management services scroll down to windows update and apply the above directly with the advantage that you can see what you are actually doing.
Thanks for the tip. CPU had been running crazy trying to keep up with the update service. The CPU temp has dropped from 43 degrees Celcius to 35 degrees.
Omg! Thanks you! I was stuck in windows update hell!
Thanks for the info. I made a .bat file to stop, and one to start with this info. Just run as administrator and it works 🙂
I hope the above stop up dates work as my computer is all bet useless
from cmd run
sc queryex wuauserv
take pidnum from result and replace xxx in
taskkill /PID xxx/F and run
This is a good short term (few days) fix but on Windows 10 home edition, update restarts itself after a few days. There is a regedit out there but it doesn’t work for Home edition. The WUSH tool also only works for a few days.
Would be great if there were a way to program this “sc config wuauserv start= disabled” command to re-run itself every 2 days. Does anyone know how to do this?
Just put the command in a batch file, then schedule a task launching it with highest priviledge “when the computer starts”. (^v^)
i am running cmd as administrator but also the following cmd net stop wuauserv is saying invalid what to do then
Erm… I disabled the command using the command prompt (admin), but the file Windows10Upgrade keeps appearing. Help me please!
I can’t stop windows 10 update using service stopping, when I connect to wifi ,service is auto enable how can I stop permanently
Is there any command just to show the windows update is on or off ?
How can I disable windows updates for all the computers on the network?
Unfortunately, Windows 10 Home does not allow users to turn off automatic updates. To do that, you would have to upgrade to the Pro version. Otherwise, you’re looking at a lot of punishing hours spent rolling back updates you didn’t want… I had this issue with an error related to a registry conflict that prioritizes RuntimeBroker and found that this was the case during my research into the cause for the ongoing rollbacks.
I have no access to stop and disable the services. Can anyone tell me what to do in this case?
Hello, I am searching across the internet to find a solution to fix the svchost.exe disk usage, and almost every one of them suggests to disable or turn manual the Windows Update Service. I already did that, but the svchost.exe thing keeps consuming my disk.
If you know how to fix this, please tell me.
Can always services >Windows update
right click, properties, Revoery, and change to no action for all 3… see if that may help.
Thanks, had to get around an invasive group policy to repair bitlocker bde protectors, this was the trick I needed to disable updates so my bitlocker tables could be repaired.
Brent, New Zealand
Windows 10 Restart with Update
I have a problem with the computer restarting after updating. When I first upgraded to windows 10 it was set to «Automatic» under the «Advanced options» for Windows Update and this caused problems since Windows doesn’t know how to save files that are open and being used before shutting down and I was loosing work. I changed the setting to «Notify to schedule restart» so that this would not happen again.
Unfortunately it seems that if you do not schedule a restart soon enough, Windows will still trigger a shutdown. This only occurs after updates have been downloaded and installed, and seems to happen when my computer falls asleep for some length of time. I will return to my computer to find it shutdown, and then when I turn it back on it finishes the update and then lets me open my programs to see how much data I lost because it doesn’t know how to close programs properly before a shutdown.
With the help of a Microsoft chat (case # 1308854774) I attempted the workaround for turning off automatic updates through the registry editor, only to learn that this is not possible anymore in Windows 10 (unless maybe you have the Pro or Enterprise versions, which I do not). This is not acceptable. I understand the need for updates, but I have lost HOURS of work due to this issue since not all the programs I use (as a person in the science field) are setup for automatic saves. And even those who do automatically save sometimes miss the last few things you did, not to mention having to start the program and find the right version you were working on.
Please help me turn off updates, or at least give me the option to postpone or choose when it is going to happen, especially since from what I can tell the computer only tells and asks you once that the updates are ready. Please let me know if there is some other way to resolve this
Replies (19)
* Please try a lower page number.
* Please enter only numbers.
* Please try a lower page number.
* Please enter only numbers.
Thank you for posting your query on Microsoft Community.
As per description, I understand that Windows 10 restarts after update and you need to avoid automatic restart.
I can imagine the inconvenience you are experiencing at this moment and will certainly help you.
The goal of Windows Update is to always keep your computer as safe and secure as possible. Well, some updates require access to files currently in use by your system. Windows Update does not know if or when those files will be available to use, so your system requires a reboot to avoid any conflicts.
For security-related updates, your computer is unsafe before that reboot occurs: it is vulnerable to attacks which exploit the issues fixed by the update requiring a reboot.
For that reason, when Windows Update automatically installs an update that needs a reboot, it proceeds with an automatic reboot.
You can configure Windows Update automatic reboots. Follow below steps and check if it resolves the issue.
To stop Windows automatically restarting is just to modify your Windows Update settings so that it will only download updates, but not install them until you tell it too.
Follow below steps:
1. Go to Start > Run > and type gpedit.msc and hit Enter.
2. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Windows
Components > Windows Update.
3. Double click on Configure Windows Update, click Enabled option on left pane.
4. Select the option 3 (Auto download and notify for install) from the drop down menu under Configure
automatic updating.
5. Click on Apply and then OK.
6. Enable No auto-restart with logged on users for scheduled automatic updates installations.
(If you set this policy to Enabled, then your system will never automatically reboot when a user is logged on to it).
7. Double click on «No auto-restart with logged on users for scheduled automatic updates installations«.
8. Select Enabled option on left pane > Apply > OK.
Hope this helps. If the issue remains unresolved, please get back to us and we would be happy to help.
Сброс настроек службы обновлений Windows Update
В этой статье мы покажем, как исправить ошибки и восстановить работу службы обновления Windows с помощью сброса конфигурации агента и службы Windows Update. Как правило, это самый эффективный и простой способ решить проблему с работой службы обновлений Windows, если обновления не загружаются или происходят ошибки при установке обновлений.
Обычно для отладки и дебага ошибок службы обновления Windows администратору необходимо проанализировать коды ошибок в файле журнала обновлений %windir%\WindowsUpdate.log (в Windows 10 получить файл WindowsUpdate.log можно таким способом). Количество возможных ошибок, с которыми может столкнуться администратор при анализе журнала обновлений исчисляется десятками (список всех ошибок Windows Update) и процесс их разрешения в основном нетривиальный. В некоторых случаях вместо детального анализа ошибок Windows Update гораздо быстрее и проще сначала произвести полный сброс настроек агента и службы Windows Update. После сброса Windows Update вы можете выполнить сканирование и поиск обновлений.
Средство устранения неполадок Центра обновления Windows
Прежде чем перейти к сбросу конфигурации центра обновления Windows настоятельно рекомендуем сначала попробовать более простое и эффективное средство для автоматического исправления проблем в службе обновления Windows – средство устранения неполадок Центра обновления Windows (Windows Update Troubleshooter).
Скачайте и запустите Windows Update Troubleshooter для вашей версии Windows:
- Windows10 – wu10.diagcab ( https://aka.ms/wudiag ) (либо запустите локальную версию инструмента: Пуск -> Параметры -> Обновления и безопасность -> Устранение неполадок -> Центр обновлений Windows (Start -> Settings -> Updates and Security -> Troubleshoot -> Windows Updates Troubleshooter);
- Windows 7и Windows 8.1 — WindowsUpdate.diagcab ( https://aka.ms/diag_wu ).
Дождитесь пока средство устранения неполадок Центра обновления Windows просканирует систему и попытается автоматически исправить все ошибки в службе Windows Update и связанных компонентах.
В моем случае была обнаружена и исправлена потенциальная ошибка в базе данных Центра обновления Windows. После этого осталось перезагрузить компьютер и попробовать выполнить поиск обновлений. Если обновления не загружаются или не устанавливаются, перейдите к следующему этапу.
Сброс настроек Windows Update из командной строки
Процесс сброса настроек агента и службы обновления Windows состоит из нескольких этапов. Все описанные операции выполняются в командной строке и собраны в один bat файл (готовый скрипт можно скачать по ссылке ниже).
С помощью данного скрипта можно полностью сбросить конфигурацию службы Центра обновлений Windows, и очистить локальный кэш обновлений. Скрипт является универсальный и будет работать как в Windows 7, Windows 8.1 и Windows 10, так и в Windows Server 2016/ 2012 R2/ 2008 R2. Скрипт помогает устранить большинство типовых ошибок в работе службы Windows Update, когда центр обновлений перестает загружать новые обновления или пишет, что при установке обновления возникают ошибки.
Итак, по порядку о том, что делает скрип:
- Остановка службы Windows Update (Центр обновлений Windows), BITS и службы криптографии:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
taskkill /im wuauclt.exe /f - Удаление служебных файлов qmgr*.dat в каталоге %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\:
Del «%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat» - Переименовываем служебные каталоги, в которых хранятся конфигурационные файлы и кэш обновлений (в случае необходимости их можно будет использовать как резервные копии). После перезапуска службы обновления, эти каталоги автоматически пересоздадутся:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak - Удаление старого журнала windowsupdate.log
del /f /s /q %windir%\windowsupdate.log - Сброс разрешений на службы BITS и Windows Update (в случае, если права на службы были изменены)
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset cryptsvc D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
sc.exe sdset trustedinstaller D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) - Перерегистрация файлов системных динамических библиотек (dll), связанных со службами BITS и Windows Update:
cd /d %windir%\system32
regsvr32.exe /U /s vbscript.dll
regsvr32.exe /U /s mshtml.dll
regsvr32.exe /U /s msjava.dll
regsvr32.exe /U /s msxml.dll
regsvr32.exe /U /s actxprxy.dll
regsvr32.exe /U /s shdocvw.dll
regsvr32.exe /U /s Mssip32.dll
regsvr32.exe /U /s wintrust.dll
regsvr32.exe /U /s initpki.dll
regsvr32.exe /U /s dssenh.dll
regsvr32.exe /U /s rsaenh.dll
regsvr32.exe /U /s gpkcsp.dll
regsvr32.exe /U /s sccbase.dll
regsvr32.exe /U /s slbcsp.dll
regsvr32.exe /U /s cryptdlg.dll
regsvr32.exe /U /s Urlmon.dll
regsvr32.exe /U /s Oleaut32.dll
regsvr32.exe /U /s msxml2.dll
regsvr32.exe /U /s Browseui.dll
regsvr32.exe /U /s shell32.dll
regsvr32.exe /U /s atl.dll
regsvr32.exe /U /s jscript.dll
regsvr32.exe /U /s msxml3.dll
regsvr32.exe /U /s softpub.dll
regsvr32.exe /U /s wuapi.dll
regsvr32.exe /U /s wuaueng.dll
regsvr32.exe /U /s wuaueng1.dll
regsvr32.exe /U /s wucltui.dll
regsvr32.exe /U /s wups.dll
regsvr32.exe /U /s wups2.dll
regsvr32.exe /U /s wuweb.dll
regsvr32.exe /U /s scrrun.dll
regsvr32.exe /U /s msxml6.dll
regsvr32.exe /U /s ole32.dll
regsvr32.exe /U /s qmgr.dll
regsvr32.exe /U /s qmgrprxy.dll
regsvr32.exe /U /s wucltux.dll
regsvr32.exe /U /s muweb.dll
regsvr32.exe /U /s wuwebv.dllregsvr32.exe /s vbscript.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s msjava.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s Mssip32.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s Urlmon.dll
regsvr32.exe /s Oleaut32.dll
regsvr32.exe /s msxml2.dll
regsvr32.exe /s Browseui.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s Mssip32.dll
regsvr32.exe /s atl.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll - Сброс параметров Winsock netsh winsock reset
- Сброс параметров системного прокси netsh winhttp reset proxy
- Опционально. При использовании локального сервера WSUS, возможно дополнительно сбросить текущую привязку клиента к серверу WSUS путем удаления следующих параметров в ветке HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate:
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v AccountDomainSid /f
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v PingID /f
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v SusClientId /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v TargetGroup /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUServer /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUStatusServer /f - Запуск остановленных служб:
sc.exe config wuauserv start= auto
sc.exe config bits start= delayed-auto
sc.exe config cryptsvc start= auto
sc.exe config TrustedInstaller start= demand
sc.exe config DcomLaunch start= auto
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc - Опционально. В некоторых случая требуется установить/переустановить последнюю версию агента Windows Update Agent (WUA). Скачать актуальную версию агента можно со страницы https://support.microsoft.com/en-us/kb/949104. Нужно скачать файл для вашей версии Windows.
Актуальная версия агента WUA для Windows 7 SP1 x64 — 7.6. Принудительная переустановка агента WindowsUpdate выполняется следующими командами:
- для Windows 7 x86: WindowsUpdateAgent-7.6-x86.exe /quiet /norestart /wuforce
- для Windows 7 x64: WindowsUpdateAgent-7.6-x64.exe /quiet /norestart /wuforce
Осталось перезагрузить компьютер и запустить синхронизацию с сервером Windows Update /WSUS.
wuauclt /resetauthorization /detectnow
Затем зайдите в Центр обновления и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.
Сам скрипт reset_win_update.bat можно скачать по ссылке reset_win_update.zip (пункты 9 и 11 в скрипте не выполняются, т.к. являются опциональными). Скрипт нужно скачать, распаковать и запустить с правами администратора.
После этого перезагрузите компьютер, затем зайдите в Центр обновлений и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.
Если обновления начали корректно скачиваться и устанавливается, можно удалить папки резервные копии папок:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
Скрипт Reset Windows Update Agent
В галерее скриптов Technet есть довольно полезный и простой скрипт для сброса компонентов центра обновлений — Reset Windows Update Agent. Скрипт универсальный и подходит для всех версий Windows: начиная с Windows XP и заканчивая последними версиями Windows 10. Рассмотрим, как им пользоваться.
- Скачайте архив ResetWUEng.zip здесь (https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc) и распакуйте его;
- Запустите файл ResetWUEng.cmd с правами администратора;
- Скрипт определит вашу версию ОС (в моем примере это Windows 10) и предложит 18 различных опций. Некоторые из них напрямую не относятся к сбросу настроек агента WU, но могут быть полезны для исправления различных неисправностей в Windows (проверка диска chkdsk, исправление ошибок в образе Windows, сброс Winsock, очистка временных файлов и т.д.);
- Для сброса настроек Windows Update как правило достаточно использовать опцию 2 —ResetstheWindowsUpdateComponents (Сбросить компоненты службы обновления Windows). Нажмите 2 и Enter;
- Скрипт автоматически выполнит все действия, которые мы описали выше при выполнении ручного сброса агента обновлений Windows из командной строки.