Rexxer

Some tips for me and other

Powershell + Get users from specified groups

$Groups = “ip”,”team”,”Managment”,”mott”
ForEach ($Group in $Groups) {
write-host “#”
write-host “Group:” $Group
write-host “===============================”
$gr = Get-ADGroupMember -identity $group
echo $gr.name
write-host “===============================”
}

Comments are currently closed.