Чтобы обновить или обновить программное обеспечение Windows через командную строку (CMD), вы можете использовать несколько методов. Вот несколько примеров:
Метод 1: использование службы обновления Windows (WUA)
# Open Command Prompt as an administrator
# Type the following command to check for updates
wuauclt /detectnow
# Type the following command to install available updates
wuauclt /updatenow
Метод 2. Использование DISM (обслуживание образов развертывания и управление ими)
# Open Command Prompt as an administrator
# Type the following command to check for updates
dism /online /check-Health
# Type the following command to scan for updates
dism /online /cleanup-Image /ScanHealth
# Type the following command to repair the image
dism /online /cleanup-Image /RestoreHealth
Метод 3. Использование модуля PowerShell Центра обновления Windows
# Open PowerShell as an administrator
# Type the following command to install the Windows Update module
Install-Module -Name PSWindowsUpdate -Force -AllowClobber
# Type the following command to check for updates
Get-WindowsUpdate
# Type the following command to install available updates
Install-WindowsUpdate -AcceptAll -AutoReboot
Метод 4. Использование служб обновления программного обеспечения Windows (WSUS)
# Open Command Prompt as an administrator
# Type the following command to check for updates from WSUS server
wuauclt /detectnow
# Type the following command to install available updates from WSUS server
wuauclt /updatenow
Это всего лишь несколько способов обновления программного обеспечения Windows с помощью командной строки. Конкретный метод, который вы выберете, может зависеть от конфигурации и требований вашей системы.