Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Ветеран


Сообщения: 1259
Благодарности: 861

Профиль | Отправить PM | Цитировать


Есть WSUS модуль - https://docs.microsoft.com/en-us/powershell/module/wsus (Get-WsusComputer)
Есть PoshWSUS модуль - https://github.com/proxb/PoshWSUS (Get-PSWSUSClient)

В документации можно найти: To get this interface, call one of the following methods: Item; GetComputer; GetComputerTarget; GetComputerTarget; RegisterComputer.

Скажем для примера, возьмем GetComputerTarget - https://blogs.technet.microsoft.com/...ent-computers/

Код: Выделить весь код
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")

#Connect to the WSUS Server and create the wsus object

$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer('dc1',$False)

#Create a computer scope object

$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope

#Find all clients using the computer target scope

$wsus.GetComputerTargets($computerscope)
Это сообщение посчитали полезным следующие участники:

Отправлено: 10:08, 22-01-2019 | #2