Difference between revisions of "Get-AD"
Jump to navigation
Jump to search
(Created page with "``` Get-ADUser -Filter "GivenName -eq 'Joe'" Get-ADPrincipalGroupMembership junhuo | select name | findstr -i foo ```") |
|||
(5 intermediate revisions by the same user not shown) | |||
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-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 | ||
``` | ``` |
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