📜  powershell 获取组和成员的列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:39.686000             🧑  作者: Mango

代码示例1
$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
}