User Tools

Site Tools


active_directory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
active_directory [2020/07/07 22:13] stephenactive_directory [2021/04/06 09:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Active Directory ====== ====== Active Directory ======
 +
 +===== Basic Account Check =====
 +
 +<code powershell>
 +net user username /domain
 +</code>
  
 ===== Get Group Membership ===== ===== Get Group Membership =====
  
 +To get just the top level groups:
 +<code powershell>
 +Get-ADPrincipalGroupMembership -Identity $env:username | Select name, GroupCategory, GroupScope, distinguishedName
 +Get-ADPrincipalGroupMembership -Identity 'username' | Select name, GroupCategory, GroupScope, distinguishedName
 +</code>
 +
 +To get **all** groups:
 <code> <code>
 whoami /groups whoami /groups
Line 13: Line 26:
 <code> <code>
 gpresult /R gpresult /R
-</code> 
- 
-Try this: 
-<code powershell> 
-Get-ADPrincipalGroupMembership -Identity $env:username | Select name 
-Get-ADPrincipalGroupMembership -Identity 'username' | Select name 
 </code> </code>
  
active_directory.1594160031.txt.gz · Last modified: 2020/07/08 23:13 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki