Windows на asus fonepad 7

Важно! Обновить операционную систему из «Командной строки» можно только в том случае, если в Windows 10 включена служба «Центра обновления Windows». Рекомендуется перед выполнением основной инструкции убедиться в этом. При необходимости воспользуйтесь руководством, опубликованным в тематической статье на нашем сайте.

Подробнее: Включение «Центра обновления» в Windows 10

как запустить обновление из командной строки в windows 10_01

Чтобы обновить Windows 10 через окно консоли, его изначально необходимо открыть, только делать это следует от имени администратора. Одним из способов запуска «Командной строки» с повышенными привилегиями подразумевает использование поиска по системе. Установите курсор в соответствующее поле на панели задач, а затем введите запрос «Командная строка» (без кавычек). Как только в результатах отобразится искомая программа, наведите на нее курсор и в дополнительном меню справа выберите пункт «Запуск от имени администратора».

как запустить обновление из командной строки в windows 10_02

Читайте также: Как запустить «Командную строку» от имени администратора в Windows 10

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

UsoClient StartScan

как запустить обновление из командной строки в windows 10_03

При наличии обновлений инициализация их загрузки выполняется посредством другой команды, показанной ниже. Не забудьте нажать Enter после того, как введете ее.

UsoClient StartDownload

как запустить обновление из командной строки в windows 10_04

Если все апдейты скачаны на компьютер, можно произвести их инсталляцию. Делается это путем ввода команды, приведенной ниже.

UsoClient StartInstall

как запустить обновление из командной строки в windows 10_05

Вы также можете выполнить команду, чтобы после завершения установки обновлений компьютер автоматически перезагрузился. Это иногда требуется для применения внесенных изменений.

UsoClient RestartDevice

как запустить обновление из командной строки в windows 10_06

Обратите внимание! Все вышеперечисленные команды можно выполнять по отдельности, но при необходимости их последовательного ввода предпочтительнее воспользоваться всего одной командой, которая автоматически их поочередно выполняет. То есть если вписать строку ниже в консоль и нажать Enter, будет произведен поиск обновлений, их загрузка и автоматическая установка. А при необходимости компьютер после этого перезагрузится.

UsoClient ScanInstallWait

как запустить обновление из командной строки в windows 10_07

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

Подробнее: Установка обновлений Windows 10

как запустить обновление из командной строки в windows 10_08

Читайте также: Полезные команды для «Командной строки» в Windows 10

Наша группа в TelegramПолезные советы и помощь

Стандартный установщик setup.exe в дистрибутивах Windows может использоваться для интерактивной установки операционной системы или обновлению версии ОС на компьютере. Кроме интерактивного режима, setup.exe поддерживает большое количество параметров командной строки, которые будут полезны системным администраторам. С помощью параметров
setup.exe
можно автоматизировать обновление билда (версии) Windows 10/11 на компьютерах пользователей с помощью SCCM, MDT или других средств автоматизации.

В этой статье мы покажем, как получить установочный ISO образ с последним билдом Windows 11 (в нашем примере это 24H2), с помощью параметров командной строки setup.exe выполнить проверку совместимости компьютера с новой версией Windows и выполнить обновление билда (in-place upgrade) в фоновом режиме.

Содержание:

  • Параметры командной строки установщика Windows (setup.exe)
  • Генерация актуального установочного ISO образа Windows 11
  • Проверка совместимости системы с новым билдом Windows 11
  • Автоматическое обновления билда Windows 11 из командной строки

Параметры командной строки установщика Windows (setup.exe)

При обычном запуске программы установки Windows (
setup.exe
) из установочного ISO запускается графический мастер установки/обновления. Однако у программы setup.exe есть большое количество параметров командной строки, позволяющих управлять процессом обновления версии ОС (вплоть до полностью автоматического обновления в фоновом режиме).

Общий синтаксис и доступные параметры утилиты Setup.exe перечислены ниже:

/1394Debug:<channel>
[BaudRate:<baudrate>]
/AddBootMgrLast
/Auto {Clean | DataOnly | Upgrade}
/BitLocker {AlwaysSuspend | TryKeepActive | ForceKeepActive}
/BusParams:<bus.device.function>
/CompactOS {Enable / Disable}
/Compat {IgnoreWarning / ScanOnly}
/CopyLogs<location>

/Debug:<port> [BaudRate:<baudrate>]
/DiagnosticPrompt {enable | disable}
/DynamicUpdate {enable | disable}
/EMSPort: {COM1 | COM2 | off} [/emsbaudrate:<baudrate>]
/InstallDrivers<location>
/InstallFrom<path>
/InstallLangPacks<location>
/m:<folder_name>
/MigNEO Disable
/MigrateDrivers {all | none}
/NetDebug:hostip=<w.x.y.z>,port=<n>,key= <q.r.s.t>[,nodhcp][,busparams=n.o.p]
/NoReboot
/PKey<product key>
/Priority Normal
/PostOOBE<location> [\setupcomplete.cmd]
/PostRollback<location> [\setuprollback.cmd] [/postrollbackcontext {system / user}]
/Quiet
/ReflectDrivers<location>
/ResizeRecoveryPartition {Enable / Disable}
/ShowOOBE {full / none}
/Telemetry {Enable / Disable}
/TempDrive <drive_letter>
/Unattend:<answer_file>
/Uninstall {enable / disable}
/USBDebug:<hostname>
/WDSDiscover
/WDSServer:<servername>

Список доступных параметров установки можно вывести так:

setup.exe /?

windows setup.exe параметры командной строки для обновления Windows

Подробную информацию об всех опциях setup.exe и возможных значениях можно получить на странице документации: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-command-line-options?view=windows-11

Генерация актуального установочного ISO образа Windows 11

Чтобы выполнить обновление, вам нужно получить установочный ISO образ с последней версией Windows (на данный момент это Windows 11 24H2).

Вы можете сгенерировать установочный ISO образ с помощью официальной утилиты Media Creation Tool или скачать актуальный Windows 11 multi-edition x64 ISO со страницы загрузки Microsoft (https://www.microsoft.com/en-us/software-download/windows11)

Скачать установочный ISO образ Windows с новым билдом

Смонтируйте полученный ISO образ в Windows и распакуйте содержимое образа на файловый сервер.

Распаковать ISO образ Windows

Проверка совместимости системы с новым билдом Windows 11

Прежде чем приступать к обновлению ОС, нужно проверить, совместим ли компьютер с новым билдом Windows 11, который находится в установочном образе. Откройте командную строку, перейдите в каталог с образом и выполните:

cd c:\Iso\W1124h2

start /wait SETUP.EXE /Auto Upgrade /NoReboot /DynamicUpdate Disable /Compat ScanOnly

Здесь используются такие параметры setup.exe:

  • /Auto Upgrade – автоматический режим обновления;
  • /NoReboot – запретить перезагрузку компьютера;
  • /DynamicUpdate Disable —не нужно загружать последние обновления через Windows Update;
  • /Compat ScanOnly – выполнить только проверку совместимости, без выполнения обновления.

В данном случае мастер обновления вернул, что обновление невозможно, т.к. компьютер не совместим с требованиями из-за недостаточного размер системного диска.

setup.exe проверить компьютер на совместимость с обновление билда Windows

Можно скрыть графическое окно мастера обновления Windows 11 Setup и вернуть от setup.exe только результат проверки, добавив параметр Quiet .

start /wait setup.exe /Auto Upgrade /Quiet /NoReboot /DynamicUpdate Disable /Compat ScanOnly

После выполнения этой команды, выведите содержимое переменной:

echo %errorlevel%

Здесь будет указан статус проверки на совместимость с новым билдом.

setup.exe Auto Upgrade - обновить версию Windows 11 из командной строки

В нашем случае команда вернула значение
-1047526912
. Что означает это значение? (в скобках указан шестнадцатеричный код ошибки, его можно получить в калькуляторе преобразовав DEC в HEX значение)

  • -1047526896 (0xC1900210)
    – ошибок совместимости не найдено
  • -1047526912 (0xC1900200)
    – компьютер не совместим с минимальными системными требованиями Windows 11 (см. как выполнить обновление Windows 11 на неподдерживаемом железе)
  • -1047526904 (0xC1900208)
    – несовместимое окружение (hard block)
  • -1047526898 (0xC190020E)
    – недостаточно свободного места на диске
  • -1047526908 (0xC1900204)
    – неверная редакция или архитектура образа

Подробнее изучить ошибки при проверки совместимости можно по лог файлам SETUPACT.LOG и SETUPERR.LOG в папке
C:\$Windows.~BT\Sources\Panther\
, которые генерирует setup.exe в процессе проверки.

Для получения более детальной информации о причине невозможности обновить версию Windows 11 используется утилита setupdiag.exe.

При наличии SCCM вы можете централизованно собрать значения статуса
errorlevel
с компьютеров пользователей простым пакетом с командой

setup.exe /Compat ScanOnly ….

sccm получить статус совместимости обнвлений билда windows 10

Автоматическое обновления билда Windows 11 из командной строки

Если вы не выявили проблем совместимости, которые мешают обновлению билда Windows, можете запустить автоматическое обновление версии ОС на компьютере с помощью простого скрипта. Создайте в сетевой папке с распакованным образом Windows 11 bat файл run_win_upgrade.bat со следующим кодом:

start /wait .\W1124h2\setup.exe /auto upgrade /DynamicUpdate disable /showoobe None /Telemetry Disable /Copylogs %SystemDrive%\temp /EULA Accept /compat IgnoreWarning /NoReboot

Мы использовали такие параметры обновления:

  • /Auto:Upgrade сохранить все установленные приложения и данные пользователей.
  • /ShowOOBENone – пропустить экран первоначальной настройки (OOBE)после обновления Windows
  • Можно добавить параметр /migratedrivers all. Используется для принудительного переноса всех драйверов. Если параметр не задан, установщик сам принимает решения по каждому драйверу индивидуально.
  • /Copylogs %SystemDrive%\temp – поместить логи обновления в указанный каталог
  • /Telemetry Disable – отключить запись и отправку отчетов телеметрии при установке
  • /EULA Accept – принять лицензионное соглашение
  • /Unattend:unattend.xml – позволяет задать файл ответа для установки (не используется в нашем примере)
  • /Quiet – выполнить обновление в фоновом режиме. Все графические окна Windows Setup не будут отображаться пользователю (автоматическая установка обновления).
  • /Priority low|normal – увеличить или уменьшить приоритет процесса Windows Setup
  • /CompactOS enable|disable – включить или отключить сжатие файлов с помощью функции Compact OS (позволяет сэкономить место на диске)
  • /BitLocker AlwaysSuspend — приостановить шифрование BitLocker при обновлении
  • /Compat IgnoreWarning – игнорировать все сообщения о несовместимости, которые можно пропустить
  • /NoReboot – не перезагружать компьютер автоматически после выполнения обновления.

Запуск обновлений версии Windows

Начиная с Windows 10 1607 вы можете указывать параметры установки через файл Setupconfig.ini. Этот файл должен находится в каталоге с setup.exe и содержать примерно такой текст, аналогичный команде выше:

[SetupConfig]
NoRebootShowOobe=None
Telemetry=Disable
DynamicUpdate=Disable

Для запуска обновления Windows 11 с помощью файла параметров используется команда:

Setup.exe /ConfigFile setupconfig.ini

The Windows Update allows users to keep Windows OS up to date with the latest security patches, new features, and bug fixes from Microsoft. You can access Windows Update from the Settings app on your PC. You can also run Windows Update from CMD.

Windows Update runs automatically in the background and installs new updates when they are available. However, you can also manually check for updates at any time. This will help you get the latest features and improvements faster.

By checking regularly for new Windows updates, you can ensure your PC is running smoothly and securely, ensuring you are safe from viruses, malware, and other threats.

In this guide, you will learn how to run Windows Update from Command Prompt and PowerShell using different commands.

Table of Contents

Force Windows Update from CMD

Check for updates on all Windows versions

If you want to run Windows Update from Command Prompt, you can use the wuauclt.exe utility. This utility allows you to check for updates, download updates, and install updates from the command line. The only limitation of running Windows Update through the CMD is that it won’t show any progress. Only results are shown when the process is complete. Here is how to run Windows Update from CMD:

  1. Open Command Prompt with administrative privileges

  2. Run wuauclt /detectnow to check for new updates and download them

    wuauclt /detectnow
  3. Run wuauclt /updatenow to install updates

    wuauclt /updatenow
  4. (Optional) Run wuauclt /reportnow to report back to WSUS server (if available)

    wuauclt.exe /reportnow

You can also use multiple switches in the same command:

wuauclt /detectnow /updatenow

If you want to disregard the already detected updates and force Windows Update to check for updates again immediately, you may run the following command:

wuauclt /resetauthorization /detectnow

Since the command prompt does not show any progress, a better approach would be to check and install updates simultaneously. Here’s the command for this:

wuauclt /detectnow /updatenow

Check for Windows updates in Windows 11, 10

The above-mentioned command will work in all versions of Windows, including Windows 7 and Windows Server 2008 R2. But if you are using Windows 11, Windows 10 or Windows Server 2016, you can use the “UsoClient” command, which has more options than “wuauclt.” You can run UsoClient with the following switches:

  1. Start checking for new updates

    UsoClient /StartScan
  2. Start downloading updates

    UsoClient /StartDownload
  3. Start installing updates

    UsoClient /StartInstall

Force Windows Update Check using Run Command Box

I found out that the easiest way to force a Windows update check is to use a command in the Run dialog box. There are other commands from CMD and PowerShell as well, but let’s start with the easiest way to do it.

  1. Open the Run Command box (Windows key + R).

  2. Run the following command:

    control update
    Check Windows update from the Run Command box

This will trigger the Windows Update graphical user interface which will start checking for new updates. This method works on all versions of Windows including Windows 10 and Windows 11.

There is another command that will trigger the same effect but only works in Windows 10 and 11:

ms-settings:windowsupdate
Trigger Windows Update from Settings app

Run Windows Update from PowerShell

There is no official Windows Update module for PowerShell. However, you can use “PSWindowsUpdate.” PSWindowsUpdate is a third-party module that can be used to configure Windows updates in Windows.

This module is not installed in Windows by default but you can download it from the PowerShell gallery and install and run the module to check for new updates.

Here are the three steps to run Windows Update through PowerShell:

  1. Run the following command to install PSWindowsUpdate:

    Install-Module PSWindowsUpdate
    Install Module PSWindowsUpdate

    Install PSWindowsUpdate module
  2. Check for available updates by running this cmdlet:

    Get-WindowsUpdate
    Get WindowsUpdate

    Check for available Windows updates
  3. Now install these updates using this cmdlet:

    Install-WindowsUpdate
    Install WindowsUpdate

    Install available Windows updates

The above-mentioned commands will only install Windows updates. If you want to update other Microsoft products, you’ll also need to enable the Microsoft Update Service. It’s pretty easy to enable it using PowerShell:

Add-WUServiceManager -MicrosoftUpdate

If you want to automatically restart your computer after installing all the updates, you can run the following command instead:

Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot

If you don’t want to install a separate module, you can run the following command to force start Windows Update using PowerShell:

Start-Process -FilePath 'ms-settings:windowsupdate'

Deploy Updates on Remote Computers

The PSWindowsUpdate PowerShell module can also be used to deploy Windows updates on remote computers. There are two commands involved in this process:

  1. Create a list of computers and pass the list as a variable string using the computer names:

    $computer = "comp1, comp2, comp3"

    You can add more computers to the string separated by commas. Replace “compX” with the name of each computer.

  2. Run the following command to start checking for Windows updates on remote computers:

    Invoke-WUJob -ComputerName $computer -Script {ipmo PSWindowsUpdate; Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot} -RunNow -Confirm:$false | Out-File "\server\share\logs\$computer-$(Get-Date -f yyyy-MM-dd)-MSUpdates.log" -Force

Install Specific Updates Only

If you already know the article KB no. of the specific update you want to install, you can run the following command to install that particular update(s) only:

Get-WindowsUpdate - KBArticleID "KB5002324", "KB5002325" -Install

Replace the KB number with the one you want to install.

Prevent Specific Windows Updates from Installing

You can prevent specific updates from installing on your computer by replacing the KB numbers in the following command in PowerShell:

Install-WindowsUpdate -NotKBArticle "KB5002324, KB5002325" -AcceptAll

Check for Windows Updates using Windows Settings

To check for new updates and configure your Windows Update settings, follow the steps below:

  1. Navigate to:

    • In Windows 11:

      Settings app >> Windows Update
    • In Windows 10:

      Settings app >> Update & Security >> Windows Update
  2. Click “Check for updates.”

    check for updates Windows 11

    Check for pending updates

Force Windows Update to Download Already Downloaded Updates

There will be times when the updates become corrupted or for other reasons, you just don’t want to install the downloaded updates. In that situation, you can easily delete the already-downloaded updates, which will force Windows Update to run again and check for and download the updates again.

The only caveat in this situation is that the update must not have been installed on your computer. If the update is already installed, Windows will detect it as installed and will not download it again. In that case, you will need to uninstall the update first and then force Windows Update to run again.

If you want to force Windows Update to re-download all the updates again, you can do this using the steps below.

  1. Navigate to the following directory using File Explorer:

    C:\Windows\SoftwareDistribution\Download

    This folder contains all the Windows update files that Windows OS is currently downloading or recently downloaded and installed.

  2. Select and delete all the files from the “Download” folder.

    Delete all files in Download folder

    Delete all files in the “Download” folder
  3. Run Windows Update again using the above-mentioned methods.

    This will force Windows Update to check for the same updates and download them again. The download and install process for new updates is completely automated. You don’t need to do anything during the download and installation process.

Manage Windows Updates using Wuinstall

Using WuInstall, IT Administrators can automate Windows updates. Wuinstall can be used to enforce Windows Updates inquiries, downloads, and installations at times when they deem them appropriate, enabling them to make the entire update process more controlled and user-friendly.

WuInstall is a strong and flexible system management tool that can be used in a WSUS-based or standalone environment. To download the latest updates using Wuinstall, you will need to download and install Wuinstall first. Follow the steps below:

  1. Go to http://www.wuinstall.com/ and install the latest free version of Wuinstall on your computer.

  2. Open an elevated Command Prompt.

  3. Run the following cmdlet to search for the latest available Windows updates:

    wuinstall /search

    This will not only look for new updates but will also list them in the command window.

  4. To download the updates, run the following command:

    wuinstall /download

    This will download all the available updates from Microsoft servers.

  5. To install the updates, run the following command:

    wuinstall /install

There are a few more switches that you can use with the install command:

  • /quiet – will install updates without showing anything.
  • /disableprompt – Disable any input from Windows.
  • /autoaccepteula –  Auto-accept any agreement during the update installation.
  • /rebootcycle – Install updates on the next computer reboot.

Fix Corrupted Windows Updates

Sometimes Windows Update files get corrupted and the user is not able to download the files again or install the corrupted update files. In that case, we need to run a DISM command to fix the corrupted Windows Update. Here are the steps:

  1. Launch the Command Prompt.

  2. Run the following cmdlet:

    dism.exe /Online /Cleanup-image /Restorehealth

After successfully running this command, try force downloading the updates again, and the Windows Update should start working again.

Hopefully, this will be useful in situations where you want to automate certain Windows functions. What other purposes do you want to use command line options to run Windows Update?

Run Windows Update FAQs

What is Windows Update?

Windows Update is a free Microsoft service that provides bug
fixes, security patches, and performance enhancements for Microsoft Windows operating systems. By installing these updates, users can ensure they have the latest features and security available for their operating system.

Can I use the command line to run Windows Update?

Yes, you can use Windows’ command line to run Windows Update.

What is the benefit of running Windows Update from the command line?

Running Windows Update from the command line offers flexibility,
automation, and convenience. For example, by using the command line, you can schedule updates to occur at a specific time or be triggered by an event, and even control which updates are installed.

How can I run Windows Update from the command line in Windows 10?

Follow the steps below to force Windows update with the command line:
Type cmd in the search box, choose Run as administrator, and click Yes to continue.
Type wuauclt.exe /updatenow and hit Enter.
This command will force Windows Update to check for updates and start downloading.

What is the command to run Windows Update from PowerShell?

To run Windows Update via PowerShell, enter the following command:
Start-Process -FilePath ‘ms-settings:windowsupdate’

What is “usoclient.exe” and how does it relate to Windows Update?

“Usoclient.exe” is a built-in command line tool for Windows Update that can be used to scan for updates, start updates, and even uninstall updates. It provides an alternative to Windows Update’s graphical user interface. This tool can be especially useful for IT administrators who need to run Windows Update simultaneously on multiple machines. It can be run from the command line and provides options for updating in managed environments. It also allows for more detailed control over the update process, such as setting which updates to install or uninstall.

Can Windows Update be automated using the command line?

Yes, Windows Update can be automated using the command line. This can be done by creating scripts that automatically execute Windows Update commands.

It’s always recommended to regularly update Windows as the updates solve any existing bugs and bring about new features.

Usually, users use the graphical interface on the OS to search for and install updates. However, there are some cases where you may want to run this process from the Command-line (CLI) tools such as Command Prompt and Windows PowerShell.

For instance, you may need to manage updates, especially for other users on a Windows server. Or, you may be creating a script where you need such commands.

How to Run Windows Update from Command Line?

There are a few ways to run Windows Update from the command line on a Windows system, which are as follows:

Using Command Prompt

On Windows 10 and 11, Microsoft uses the Update Session Orchestrator Client UsoClient.exe tool for updating your system components.

Previously, it was possible for users to use this program from the Command Prompt to check and install updates. However, in the latest versions, you can only check for updates. Regardless, you can try using the steps below and check if they work out for you:

  1. Open Run by pressing Win + R.
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
    cmd-run

  3. Enter the following commands depending on the corresponding operations:
    • UsoClient StartScan – Start the scan for available updates
    • UsoClient StartDownload – Download but not install the updates or patches you scanned for.
    • UsoClient StartInstall – Install all downloaded updates.
    • UsoClient ScanInstallWait – Scans, downloads, and installs the updates
    • UsoClient RestartDevice – Restarts your computer to complete the update installation
    • UsoClient ResumeUpdate – Resumes the installation of update after reboot
    • UsoClient RefreshSettings – Refresh the update settings to the default
      usoclient

You can also check which UsoClient commands you can use on your system by using the following command on the Elevated Windows PowerShell:

  1. Open Run.
  2. Type powershell and press Ctrl + Shift + Enter to open the Elevated Windows PowerShell.
  3. Copy and paste the following command and press Enter:
    Get-ScheduledTask -TaskPath '\Microsoft\Windows\UpdateOrchestrator\' | Select-Object @{Expression={$_.TaskName};Label="TaskName"}, @{Expression={$_.Actions.Execute + ' ' + $_.Actions.Arguments};Label="CommandLine"}
    check-usoclient

On older Windows versions, you could use the Windows Update Agent WUAUCLT.exe to update Windows.

First, you need to enable Automatic Updates with scheduled installation through the Group Policy. Otherwise using the Windows Update Agent from Command Prompt won’t work. To do so,

  1. Open Run and enter gpedit.msc to open the Local Group Policy Editor.
  2. Go to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
  3. If it doesn’t contain policies but expands to further folders, go to Manage end user experience.
    windows-update-manage-end-user-experience

  4. Double-click on Configure Automatic Updates.
    windows-update-manage-end-user-experience-1

  5. Check Enabled and set Configuring automatic updating to 4 – Auto download and schedule the install.
  6. You can choose any schedule you want. Then, click Apply and OK.
    auto-download-schedule

Then, you can use the following commands on Prompt to update Windows using the Update Agent:

  • wuauclt /detectnow – Scans for available updates
  • wuauclt /updatenow – Installs the available updates
  • wuauclt /detectnow /updatenow – Combines both the processes above
    wuauclt

Microsoft didn’t exactly create the WUAUCLT.exe and UsoClient.exe tools for end users. So you won’t get any additional information for whether the commands are actually running when you use them on the Command Prompt. The Prompt will show that these commands have finished running even when they are still operating in the background.

You have to estimate the time it may take and wait until then. So, instead of this method, we recommend using Windows PowerShell as you can get more detailed information during the process.

Using PowerShell

Windows PowerShell is a very powerful Windows CLI with which you can do everything that Command Prompt allows and many more. Naturally, you can use it to run windows updates. Here’s what you need to do:

  1. Press Win + R to open Run.
  2. Type powershell and press Ctrl + Shift + Enter to open the Elevated PowerShell. If you use PowerShell 7, you can open it by entering pwsh instead of powershell
  3. Enter the command below to download and install the Windows Update Module, which you need to run the actual commands for updating Windows:
    Install-Module PSWindowsUpdate
    install-module-windows-update

  4. On the prompts, type Y and press Enter.
  5. After installing it, enter the following update commands to perform the corresponding actions:
    • Get-WindowsUpdate – Scans for available updates and displays them
    • Install-WindowsUpdate – Downloads and installs all the available updates
    • Get-WindowsUpdate -AcceptAll -Install -AutoReboot – Downloads and installs all the available updates while automatically rebooting the PC after the installation if necessary.
    • Get-WindowsUpdate -Install -KBArticleID 'KB5017859' – Install the KB5017859 update. You need to replace the update ID ‘KB5017859’ with the KB Article ID of the available updates from the Get-WindowsUpdate command.
      install-particular-update-powershell

Using Visual Basic Script

While the above command line methods can run Windows Update, they are not interactive and user-friendly. Microsoft’s platform contains some Visual Basic Script (VB script) to run an interactive update process from the CLI, especially as a sample for developers. However, you can also use this script for your purpose.

  1. Open Run and enter notepad to launch this text editor.
    notepad-run-1

  2. Then, open a web browser and go to the following Microsoft pages depending on whether you want to install a particular update or all updates at once:
    • All Available Updates
    • Specific Updates
  3. Copy the script from the page to the notepad you just opened.
  4. Press Ctrl + S to save the file.
  5. Set Save as type to All files and File name to UpdateInstall.vbs. You can use any name, but remember to use the .vbs extension.
  6. Save it on any location by navigating there and clicking on Save.
    save-vbs

  7. Then, open the Elevated Command Prompt.
  8. Enter the following command while replacing the path:
    cscript “<Path to the folder>\UpdateInstall.vbs”
    cscript-vbs

  9. You can also right-click on the script on your file explorer and select Copy as path. Then, paste it after typing cscript and the space to avoid manually typing the full path.
  10. Then, follow the on-screen instructions on the CLI.

FAQ

[Windows 11/10] How to Use Windows Update to Update System and BIOS

Applicable Products: Notebook, Desktop, All-in-One PC, Gaming Handheld, MiniPC

Maintaining the latest state of the operating system helps ensure device security and performance. The Windows operating system provides a convenient update mechanism through Windows Update, enabling users to easily access the latest features, patches, and security updates.

This article will guide you on how to use Windows Update to obtain the latest updates and the BIOS of your device.

Please go to the corresponding instruction based on the current Windows operating system on your device:

  • Windows 11
  • Windows 10

Windows 11 operating system

Obtaining the Latest Updates via Windows Update

  1. Type and search [Windows Update settings]in the Windows search bar, then click [Open].                 

  2. Click [Check for updates].                 

  3. If a feature update is available for your device, it will appear separately on the Windows Update page and start to download and install. Some updates may need to be additionally clicked ‘Install now’ by yourself.                 

  4. Some updates may ask restarting your device, so you can select [Restart now]. Otherwise, if you don’t want to restart the device yet, you can select Schedule the restart to set up the restart schedule.                 
    Note: Before restarting the device, please save your current work.                 

  5. After you finish and complete the update procedures, you can select Update history to see the information of previous update data.                 

Updating BIOS via Windows Update

Windows 8.1 and earlier operating system versions cannot automatically update BIOS through Windows Update. Only ASUS products pre-installed with Windows 10/11 can update BIOS through Windows Update.

  1. When the BIOS update has been downloaded and is awaiting installation, you may receive a message similar to the one shown below, indicating that a system restart is required before BIOS update.

    Alternatively, you may find a similar message by checking Device Manager > Firmware > System Firmware > Properties.

  2. Save your current work and restart your device. Your device will display a screen similar to the one below for updating BIOS. (The BIOS update screen may vary slightly depending on the model)
    During the BIOS update, a progress bar will move from left to right automatically. No manual intervention is required, as the BIOS update will proceed automatically.
    Note: Ensure that your device is plugged in during the BIOS update, and do not disconnect the power supply. If the BIOS update is interrupted, the system may not function properly, and it will require service at a repair center.
  1. Once your device restarts and boots into the Windows operating system, the BIOS update is complete. Learn more about How to check the BIOS version to confirm the successful completion of the update.

If the BIOS update is interrupted for any reason, ensure that the power is connected and restart to check if the update resumes automatically. If the update cannot continue, and the system does not display, please send the device to a repair center for service.

Windows 10 operating system

Obtaining the Latest Updates via Windows Update

  1. Type and search [Windows Update settings]in the Windows search bar, then click [Open].                 

  2. Click [Check for updates].                 

  3. If a feature update is available for your device, it will appear separately on the Windows Update page and start to download and install. Some updates may need to be additionally clicked ‘Install now’ by yourself.                 

  4. Some updates may ask restarting your device, so you can select [Restart now]. Otherwise, if you don’t want to restart the device yet, you can select Schedule the restart to set up the restart schedule.                 
    Note: Before restarting the device, please save your current work.               

  5. After you finish and complete the update procedures, you can select View update history to see the information of previous update data.               

Updating BIOS via Windows Update

Windows 8.1 and earlier operating system versions cannot automatically update BIOS through Windows Update. Only ASUS products pre-installed with Windows 10/11 can update BIOS through Windows Update.

  1. When the BIOS update has been downloaded and is awaiting installation, you may receive a message similar to the one shown below, indicating that a system restart is required before BIOS update.

    Alternatively, you may find a similar message by checking Device Manager > Firmware > System Firmware > Properties.

  2. Save your current work and restart your device. Your device will display a screen similar to the one below for updating BIOS. (The BIOS update screen may vary slightly depending on the model)
    During the BIOS update, a progress bar will move from left to right automatically. No manual intervention is required, as the BIOS update will proceed automatically.
    Note: Ensure that your device is plugged in during the BIOS update, and do not disconnect the power supply. If the BIOS update is interrupted, the system may not function properly, and it will require service at a repair center.
  1. Once your device restarts and boots into the Windows operating system, the BIOS update is complete. Learn more about How to check the BIOS version to confirm the successful completion of the update.

If the BIOS update is interrupted for any reason, ensure that the power is connected and restart to check if the update resumes automatically. If the update cannot continue, and the system does not display, please send the device to a repair center for service.

Was this information helpful?

Yes
No

  • Above information might be partly or entirely quoted from exterior websites or sources. please refer to the information based on the source that we noted. Please directly contact or inquire the sources if there is any further question and note that ASUS is neither relevant nor responsible for its content/service
  • This information may not suitable for all the products from the same category/series. Some of the screen shots and operations could be different from the software versions.
  • ASUS provides the above information for reference only. If you have any questions about the content, please contact the above product vendor directly. Please note that ASUS is not responsible for the content or service provided by the above product vendor.
  • Brand and product names mentioned are trademarks of their respective companies.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Не обновляются групповые политики windows 10
  • Как удалить avg antivirus free с компьютера полностью windows xp
  • Как проверить наличие net framework на windows 10
  • Jagged alliance 2 зависает на windows 10
  • Установить драйвер блютуз для windows 10