Difference between revisions of "Get-AD"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
Get-ADPrincipalGroupMembership junhuo | select name | findstr -i foo | Get-ADPrincipalGroupMembership junhuo | select name | findstr -i foo | ||
+ | |||
+ | Get-ADGroup -Identity "my group name" | ||
Get-ADGroupMember <adgroup> | Get-ADGroupMember <adgroup> |
Latest revision as of 20:00, 25 July 2023
Get-ADUser -Filter "GivenName -eq 'Joe'" Get-ADPrincipalGroupMembership junhuo | select name | findstr -i foo Get-ADGroup -Identity "my group name" Get-ADGroupMember <adgroup> get-adgroup my-tester-group (Get-ADGroupMember "My AD Host Group").name
Get-ADReplicationSite -Filter *
Check user using cred
$Credential = Get-Credential Get-Aduser username -Credential $Credential -Server wjp1-dc