Skip to content
  • How to start learning Linux
  • Labtech Implementation Stuff
  • Clogged
  • Active Directory DNS Troubleshooting
  • Some Roulette  Strat from Reddit
  • Mystery steel processing and testing
  • Croissants and Rose Lychee Cream
  • Mac and Cheese
  • DFS Replication: Requirements and Configuration
  • Services.msc not opening in Windows 11/10
  • Microsoft AD LDAP (2008): Importing Your Certificate .pfx File into the AD DS Personal Store
  • Powershell How to get all groups that a user is a member of?
  • Home Energy Saving Tips
  • Changing NTFS Security Permissions using PowerShell
  • VALORANT’S 128-TICK SERVERS

Merserver

Its a website

  • Uncategorized
  • IT
  • Unreal Engine
  • GameDev
  • Interesting Stuff
  • Food
  • Web Design
  • Kubernetes
  • Music
  • Linux
  • Auto
  • Fishing
  • Gaming
  • Magic the Gathering
  • Toggle search form

Powershell How to get all groups that a user is a member of?

Posted on October 26, 2022 By samadmin

Get-ADPrincipalGroupMembership will do this.

Get-ADPrincipalGroupMembership username | select name

name
----
Domain Users
Domain Computers
Workstation Admins
Company Users
Company Developers
AutomatedProcessingTeam
IT

Post navigation

Previous Post: Home Energy Saving Tips
Next Post: Microsoft AD LDAP (2008): Importing Your Certificate .pfx File into the AD DS Personal Store

Related Posts

How to start learning Linux IT
16 Ways to Bypass the PowerShell Execution Policy IT
Why is there a DENY rule for Remote Desktop in Windows Firewall with Advanced Security? IT
How to Automate PowerShell Scripts with Task Scheduler IT
Cisco IOS Showing DHCP Status IT
Use PowerShell to download a file with HTTP, HTTPS, and FTP IT

Copyright © 2025 Merserver.

Powered by PressBook Masonry Dark