/
CreateWSUSGroups.ps1
14 lines (14 loc) · 2.61 KB
/
CreateWSUSGroups.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Backup" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Backup.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers External LB1" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers External LB1.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers External LB2" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers External LB2.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers External Standalone" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers External Standalone.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Internal LB1" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Internal LB1.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Internal LB2" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Internal LB2.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Internal Remote Office LON" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Internal Remote Office LON.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Internal Remote Office MCO" | Select-Object FullDomainName -ExpandProperty "FullDomainName" |Out-File "C:\temp\wsus\WSUS Servers Internal Remote Office MCO.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Internal StandAlone" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Internal StandAlone.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Monitoring1" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Monitoring1.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Monitoring2" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Monitoring2.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers SQL Standalone" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers SQL Standalone.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Test1" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\\wsus\WSUS Servers Test1.txt"
Get-WsusComputer -ComputerTargetGroups "WSUS Servers Test2" | Select-Object FullDomainName -ExpandProperty "FullDomainName" | Out-File "C:\temp\wsus\WSUS Servers Test2.txt"