Difference between revisions of "Get-AD"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
(Get-ADGroupMember "My AD Host Group").name | (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 | ||
``` | ``` |
Revision as of 18:31, 25 November 2022
Get-ADUser -Filter "GivenName -eq 'Joe'" Get-ADPrincipalGroupMembership junhuo | select name | findstr -i foo 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