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
  • 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

Create an Admin User Account Using CMD Prompt (Windows) IT
Strong Authentication in Active Directory Using a YubiKey IT
16 Ways to Bypass the PowerShell Execution Policy IT
Active Directory DNS Troubleshooting IT
Why is there a DENY rule for Remote Desktop in Windows Firewall with Advanced Security? IT
Setting up Windows Server for YubiKey PIV Authentication IT

Copyright © 2025 Merserver.

Powered by PressBook Masonry Dark