I needed to find a good AD group to grant organization wide permissions to an SSRS report and found the Get-ADPrincipalGroupMembership was really useful for querying AD. The server needs to have the "Active Directory modul for Window PowerShell" feature enabled to allow import-module activedirectory to work:
import-module activedirectory
Get-ADPrincipalGroupMembership [username without domain prefeix] | Get-ADGroup -Properties * | select name, description
Get-ADGroup [group name]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment