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 setup an SFTP server with RSA public key authentication mechanism IT
16 Ways to Bypass the PowerShell Execution Policy IT
DFS Replication: Requirements and Configuration IT
Quickbooks Service Database Manager Wont Start – DNS Conflict IT
Powershell Start-Process Reference and Documentation IT
Services.msc not opening in Windows 11/10 IT

Copyright © 2025 Merserver.

Powered by PressBook Masonry Dark