Intune Initial Scripts Backup
This commit is contained in:
3
dump/WSUS_Scripts/Old-Scripts/old-Reboot-WSUSGroup.ps1
Normal file
3
dump/WSUS_Scripts/Old-Scripts/old-Reboot-WSUSGroup.ps1
Normal file
@@ -0,0 +1,3 @@
|
||||
$WSUSGroup = Read-Host "Enter Target Group Name"
|
||||
$servers = Get-WsusComputer -ComputerTargetGroups "$WSUSGroup" -IncludeSubgroups|select Fulldomainname -ExpandProperty Fulldomainname
|
||||
Foreach ($server in $servers) {Restart-Computer -ComputerName $server -Force}
|
||||
Reference in New Issue
Block a user