I thought it would be helpful to start a series of how to do some basic things in Powershell.
If you are interested in learning Powershell feel free to follow me. I'm going to try and write these short powershell tip posts each week.
So last week we talked about how to use powershell to get a list of all the users in an AD group and cleanup the list. Today we have a new scenario.
Scenario:
Boss walks over and asks: "Can you get me a list of what groups user _____ is a member of in AD?"
Open your Powershell or Powershell ISE and type the following cmdlet with your username:
Powershell
PSC:\>Get-ADPrincipalGroupMembership-identityusername
Obviously replace the username with the username you wish. So let say you have a user name in your domain called usertom then your line would look like this:
Powershell
PSC:\>Get-ADPrincipalGroupMembership...