Start windows update cmd

Можно ли обновить Windows, используя командную строку?

Центр обновления Windows — одна из наиболее заметных функций Windows 10. Поскольку с выпуском Windows 10 Windows была предложена покупателям как услуга, а не как продукт. В сценарии «Программное обеспечение как услуга» это привело к тому, что обновления для Windows 10 были включены по умолчанию и никто не мог их отключить. Теперь, в то время как некоторые критиковали этот шаг со стороны Microsoft, в конечном итоге это шаг навстречу клиенту. Потому что Центр обновления Windows помогает пользователям оставаться защищенными от всевозможных угроз и предоставлять им новейшие и самые лучшие решения от Microsoft. Итак, тем, кто ценит этот сервис, сегодня мы поговорим о другом способе запуска этих обновлений.

1] Запустите Центр обновления Windows, используя Windows Powershell

Для запуска обновлений Windows в Windows Powershell потребуется вручную установить модуль Центра обновления Windows, загрузить загруженные обновления Windows и установить обновления Windows. И для этого откройте Windows Powershell, выполнив поиск Powershell в окне поиска Cortana и запустите его с правами уровня администратора.

Установится модуль обновления Windows для Windows Powershell.

Будет выполнено подключение к серверам Центра обновления Windows и загружены обновления, если они найдены.

Установятся обновления Windows, загруженные на ваш компьютер.

2] Запустите Центр обновления Windows с помощью командной строки

Командная строка в операционных системах Windows существует очень давно, в то время как Windows Powershell является сравнительно новым. Следовательно, он имеет аналогичные возможности для запуска обновлений Windows, но здесь следует подчеркнуть, что вам не нужно загружать какой-либо модуль для обновлений Windows.

Сначала откройте командную строку, выполнив поиск cmd в поле поиска Cortana, и запустите его с правами администратора.

Нажмите Да, чтобы получить запрос UAC.

Наконец, введите следующие команды и нажмите клавишу Enter, чтобы выполнить соответствующие операции.

Начать проверку обновлений:

Начать загрузку обновлений:

Начните установку загруженных обновлений:

Перезагрузите устройство после установки обновлений:

Проверьте, загрузите и установите обновления:

Стоит отметить, что упомянутые выше команды командной строки предназначены только для Windows 10. Для более старых версий Windows вам необходимо использовать следующие команды.

Начать проверку обновлений:

Начать установку обнаруженных обновлений:

Проверьте, загрузите и установите обновления:

Run command for Windows update

There are couple of Run commands for Windows update. The run commands are very handy to launch an application quickly without the need to find the same in list of programs or on filesystem. WindowsВ has a run command for almost every application or configuration tool.

The run commands for Windows update are wuapp (or) control update . So to launch Windows update from Run, you need to perform the below steps.

  1. OpenВ Run with [Win]+[R] shortcut or from Start menu.
  2. Type in either of ‘wuapp’ or ‘control update’ and press ‘Enter’

This launches windows update configuration window. Here you can click ‘Settings’ and then configure how you want to install updates on to your computer.

If you just want to trigger updates click on ‘Check for updates’. Note that there’s no run command that can trigger update directly

For Windows 10 the run command is:
ms-settings:windowsupdate

I prefer run commands over other ways as it seems faster to me. Here are some run commands which I use daily for opening various windows applications .
On screen Keyboard – osk
Calculator – calc
WordPad – write
Windows Media Player – wmplayer
Windows Fax and Scan – wfs
Snipping Tools – snippingtool
Paint – mspaint
Notepad – notepad
Task manager – taskmgrt/
Sticky Notes – stikyno

For Windows v1809+ I find this works from the command line:

You can also stop & start the Windows Update service prior:

Можно ли вызвать Центр обновления Windows из командной строки?

часто бывает, что я должен смотреть этот экран в течение нескольких минут:

Я понятия не имею, что происходит в спину. И я также не заинтересован в наблюдении за WindowsUpdate.log для изменения.

Я хотел бы знать, если есть способ, что дает больше обратной связи. Предпочтительно то, что я могу вызвать из командной строки (например, apt-get ).

Читайте также:  Esi julia windows 10 driver

6 ответов

в Windows 10, вы можете использовать PSWindowsUpdate модуль PowerShell.

вы можете вызвать Центр обновления Windows из командной строки с помощью wuauclt.утилита exe расположена в папке %windir%\system32\.

проверить наличие обновлений,

проверить и обновить,

Это не будет работать, если вы установили «никогда не проверять наличие обновлений» в настройках Центра Обновления Windows. Также, вероятно, автоматические обновления должны быть включены для переключения «/ updatenow » на работу (установка обновлений).

в версиях Windows до Windows 10, вы также можете запустите GUI для Центра Обновления Windows, введя следующую команду (находится в папке %windir%\system32\):

Это только открывает приложение обновления и проверяет доступные обновления, он не устанавливает их. И если вы поставили «не проверять наличие обновлений» в настройках обновления Windows, это не проверяет наличие обновлений, вам придется нажать на «кнопку обновления».

одно предложение мне очень понравилось, это WUA_SearchDownloadInstall.vbs сценарий.

доступные обновления в списке

Установки Обновления

можно использовать wusa.exe который является частью Windows 7.

хотел удалить значок обновления Windows 10 из панели задач, так что я написал это AutoHotkey скрипт, который вызывает wusa.

так что вы можете использовать wusa.exe для управления обновлениями Windows и установить .msu файлы.

этой страница имеет коллекцию других способов для управления обновлениями из командной строки.

чтобы увидеть, какие обновления установлены (через командную строку):

Я использую WuInstall. Это инструмент командной строки для управления обновлениями Windows. У вас есть много отличных опций, таких как отображение хода установки, чтобы указать, если вы хотите перезагрузить и когда, и файлы журнала доступны для каждого процесса. С уважением

Windows 10 и Windows Server 2016 или выше, используйте USOClient.exe для сканирования, загрузки и установки обновлений.

  • StartScan Используется Для Запуска Сканирования
  • StartDownload используется для запуска загрузки патчей
  • StartInstall используется для установки загруженных патчи
  • RefreshSettings обновить настройки, если были сделаны какие-либо изменения
  • StartInteractiveScan может запрашивать ввод пользователя и / или открывать диалоги, чтобы показать прогресс или сообщить об ошибках
  • RestartDevice перезагрузить устройство, чтобы закончить установку обновлений
  • ScanInstallWait Комбинированная Загрузка Сканирования Установить
  • ResumeUpdate Возобновить Установку Обновления При Загрузке

Как установить обновления Windows через консоль?

Как установить обновления через консоль cmd и PowerShell в Windows 7|10?

В Windows 10 сервис обновлений ставится чуть ли не во главу угла. Новые поколения систем не просто ремонтируются с помощью средств, использующих сетевое соединение. Недалеко и до поры, когда система будет устанавливаться во основном именно из сети без использования образов. Но и не это главное – разработчики с момента появления Windows 10 позиционируют её не как какой-то конечный продукт, но как услугу. За то Microsoft немало критикуют, но контора как всегда идёт своей дорогой, не обращая внимание на то, что же интересует остальных несогласных. В общем, добавим в наш арсенал ещё пару инструментов, с помощью которых можно установить обновления из консоли cmd и PowerShell. Т.е. мимо всем уже знакомого Центра обновлений Windows. Отмечу, что обновления в Windws 7 качаются именно системы, а не механизмов защиты и прочее, которые также могут подгружаться с системными. В Windows 10 механизм встроен, так что обновления для антивируса в пакет обновлений также войдут. Какие-то из команд прокатят только в последней версии Windows, для других понадобятся команды другие. Начнём с последней версии Windows 10.

Как установить обновления Windows через консоль cmd?

Для запуска нам понадобится сама консоль, запущенная от имени администратора, и несколько команд. Даю с комментариями:

Проверим наличие обновлений:

Для окончательной установки обновлений возможно придётся перезагрузить устройство:

Здесь хочется отметить, что команда утилиты UsoClient требует запуска дополнительных служб, что порой приводит к варианту, когда проще запустить GUI клиент обновлений Windows 10. Так что чаще всего пользователям стоит обратить внимание на следующий способ.

Как установить обновления Windows через консоль PowerShell?

Этот способ более предпочтителен по сравнению с предыдущим. Запускаем PS от имени администратора и вводим команды:

  • проверки версии PowerShell (нужна не ниже 5-й):
  • установки модуля обновлений:

установка модуля потребует установки дополнительного поставщика сервисов: на запрос консоли нажмите Enter

  • регистрируем модуль Microsoft Update Service вместо имеющегося Windows Update Service
  • и, наконец, установки самых обновлений, если какие-то скачались:

Как установить обновления Windows через консоль cmd в Windows 7?

Для скачивания и установки обновлений для Windows 7 порядок работы в командной консоли cmd немного иной. Для этого нам придётся использовать другую службу. Снова заряжаем консоль от имени администратора и вводим поочерёдно команды на проверку, установку обновлений или одну команду для совмещения обеих операций:

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

  1. Open elevated command prompt
  2. Run the below command.
Читайте также:  Rhcsa red hat enterprise linux 8 training and exam preparation guide ex200 first edition

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.

Читайте также:  Php with nginx windows

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

Оцените статью