我试图让wsus计算机处于失败状态,但我得到的所有计算机都是wsus。
PS C:\Windows\system32> (Get-WsusComputer -IncludedInstallationStates All).count
292
PS C:\Windows\system32> (Get-WsusComputer -IncludedInstallationStates Failed).count
292
PS C:\Windows\system32> (Get-WsusComputer -IncludedInstallationStates Installed).count
292
PS C:\Windows\system32> (Get-WsusComputer -ComputerUpdateStatus Any).count
292
PS C:\Windows\system32> (Get-WsusComputer -ComputerUpdateStatus Failed).count
292
PS C:\Windows\system32> (Get-WsusComputer -ComputerUpdateStatus InstalledOrNotApplicable).count
292
这有什么问题?
答案 0 :(得分:0)
试试这个:
Get-WsusComputer -ComputerUpdateStatus Failed -IncludedInstallationStates Failed