команда для отображения отсутствующих исправлений Windows

4815
wei

Когда я запускаю "systeminfo" в Windows, он показывает список исправлений, установленных на моем компьютере, в форме KBxxxxxxx. Есть ли способ (желательно из командной строки), чтобы точно знать, какие исправления я пропускаю?

3
В частности, я ищу решение, которое зависит только от собственной утилиты, которая легко доступна в Windows (например, wmic) или Microsoft (например, Sysinternals), а не от стороннего решения, такого как Windows-Exploit-Suggester. Благодарю. wei 8 лет назад 0
Какая версия Windows? DavidPostill 8 лет назад 0
Чем более широко применимо, тем лучше, возможно, XP и далее. wei 8 лет назад 0
Смотри мой ответ ... DavidPostill 8 лет назад 0

1 ответ на вопрос

2
DavidPostill

Is there a way (preferably command line) to know what hot fixes are missing?

I am looking for a solution that depends only native utility that is readily available on Windows (such as wmic) or Microsoft (such as Sysinternals)

Assuming you don't mind downloading scripts from the Microsoft Technet Gallery then you can use the PowerShell script Get-WindowsUpdates.ps1:

This script will get all available udpates for the computer it is run on. It will then optionally install those updates, provided they do not require user input.

Download link

...

Without any parameters the script will return the title of each update that is currently available.


NAME

C:\scripts\powershell\production\Get-WindowsUpdates.ps1 

SYNOPSIS

Get and optionally install Windows Updates

SYNTAX

C:\scripts\powershell\production\Get-WindowsUpdates.ps1 [-Install] [-EulaAccept] [<CommonParameters>] 

DESCRIPTION

This script will get all available udpates for the computer it is run on.

It will then optionally install those updates, provided they do not require user input.

This script was based off the original vbs that appeared on the MSDN site. Please see the Related Links section for the URL.

Without any parameters the script will return the title of each update that is currently available.

Source Get-WindowsUpdates.ps1

Я запускаю так: C: \ Users \ wei> powershell -noexit -executionpolicy bypass "& 'C: \ Users \ wei \ Get-WindowsUpdates.ps1'" wei 8 лет назад 0
@wei Что? Нет выхода все все? DavidPostill 8 лет назад 0
@wei Попробуйте запустить от имени администратора DavidPostill 8 лет назад 0
О, мне нужно решение, которое должно работать без прав администратора, только для того, чтобы перечислять обновления, а не устанавливать их. wei 8 лет назад 0
@wei Попробуйте закомментировать строки 59 и 180, в которых записываются журналы событий (это только информационные сообщения). DavidPostill 8 лет назад 1