Active Directory Friday: Distribution group membership for AD User
Active Directory Friday: Distribution group membership for ADÂ User
To get a list of distribution groups an Active Directory user account is a member of of we can query Active Directory. For example by combining the Get-ADUser and Get-ADGroup cmdlets. To generate this list the following code can be used: Get-ADUser -Identity JaapBrasser -property memberof | Select-Object -ExpandProperty memberof | Get-ADGroup | Where-Object {$_.groupcategory -eq 'Distribution'}…
View On WordPress














