I often need to collect the groups an user in part of, sometime because of a decommission others just for documentation. Taking screenshots of an user that has a bunch of groups is a pain and doesn’t allow you to use the group list. Now the latest version of powershell comes with a command to make this painless.
Get-ADPrincipalGroupMembership username | select name
That’s it, your done. Simple and quick. I love powershell 🙂
Copy PowerShell History Command https://jdhitsolutions.com/blog/powershell/8777/copy-powershell-history-command/ Here's a quick powershell function to let you see and select a command from your...