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:17] 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 =====
Line 5: Line 11:
 To get just the top level groups: To get just the top level groups:
 <code powershell> <code powershell>
-Get-ADPrincipalGroupMembership -Identity $env:username | Select name +Get-ADPrincipalGroupMembership -Identity $env:username | Select name, GroupCategory, GroupScope, distinguishedName 
-Get-ADPrincipalGroupMembership -Identity 'username' | Select name+Get-ADPrincipalGroupMembership -Identity 'username' | Select name, GroupCategory, GroupScope, distinguishedName
 </code> </code>
  
active_directory.1594160276.txt.gz · Last modified: 2020/07/08 23:17 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki