Answers for "powershell get list of groups and members"

0

powershell get list of groups and members

$Groups = Get-ADGroup -Properties * -Filter * -SearchBase "OU=Groups,DC=corp,DC=ourcompany,DC=Com" 
Foreach($G In $Groups)
{
    Write-Host $G.Name
    Write-Host "-------------"
    $G.Members
}
Posted by: Guest on May-17-2021

Code answers related to "powershell get list of groups and members"

Python Answers by Framework

Browse Popular Code Answers by Language