$wsusFQDN = 'WSUSSERVER01.contoso.com'
$wsusserver = Get-WsusServer -UseSsl -PortNumber 8531 -Name $wsusFQDN # WSUS Server FQDN
$ungroupservers = Get-WsusComputer -UpdateServer $wsusserver -ComputerTargetGroups 'Unassigned Computers' | select FullDomainName,IPAddress,OSDescription,ComputerRole,LastSyncTime,LastSyncResult,LastReportedStatusTime
#Add WSUS agent to WSUS defined group
Get-WsusComputer -UpdateServer $wsusserver -NameIncludes $serverfqdn | Add-WsusComputer -TargetGroupName 'BeiJingServers' -Confirm:$false
Powershell WSUS 自动分组
原创PS_cmdlet ©著作权
文章标签 WSUS Add-WsusComputer 文章分类 运维
-
使用 PowerShell 自动登录 Azure
本文讲述了如何使用 PowerShell 实现自动化登录Azure
Azure ARM PowerShell -
WSUS系列之三:WSUS配置
WSUS配置
Windows Server AD WSUS -
WSUS排错
WSUS一些常见的错误解决办法
职场 WSUS 排错 休闲 排错