User abfrage
DistinguishedName : CN=Thomas.Koch,CN=Users,DC=willux,DC=lan
Enabled : False
GivenName : Thomas
Name : Thomas.Koch
ObjectClass : user
ObjectGUID : 7fcacbe7-e897-4d9e-9cab-a6f8e5496b9f
SamAccountName : Thomas.Koch
SID : S-1-5-21-2135856733-995785235-2759475559-1130
Surname : Koch
UserPrincipalName :
Filter
- Get-ADUser –Filter {GivenName -eq "thomas"}
DistinguishedName : CN=Thomas.Koch,CN=Users,DC=willux,DC=lan
Enabled : False
GivenName : Thomas
Name : Thomas.Koch
ObjectClass : user
ObjectGUID : 7fcacbe7-e897-4d9e-9cab-a6f8e5496b9f
SamAccountName : Thomas.Koch
SID : S-1-5-21-2135856733-995785235-2759475559-1130
Surname : Koch
UserPrincipalName :
DistinguishedName : CN=Thomas.Klaus,CN=Users,DC=willux,DC=lan
Enabled : False
GivenName : Thomas
Name : Thomas.Klaus
ObjectClass : user
ObjectGUID : 164d0f7a-2233-4eca-92d7-af532a2211b4
SamAccountName : Thomas.Klaus
SID : S-1-5-21-2135856733-995785235-2759475559-1131
Surname : Klaus
UserPrincipalName :
Suchen mit Wildard
- Get-ADUser -Filter * -Searchbase "CN=Users,DC=willux,DC=lan" | more
DistinguishedName : CN=Administrator,CN=Users,DC=willux,DC=lan
Enabled : False
GivenName :
Name : Administrator
ObjectClass : user
ObjectGUID : 1d830a8d-5ef2-4100-a09c-c09a2698e498
SamAccountName : Administrator
SID : S-1-5-21-2135856733-995785235-2759475559-500
Surname :
UserPrincipalName :
DistinguishedName : CN=Gast,CN=Users,DC=willux,DC=lan
Enabled : False
GivenName :
Name : Gast
ObjectClass : user
ObjectGUID : 99712b6a-0015-4dd9-a55a-c82b90d67005
SamAccountName : Gast
SID : S-1-5-21-2135856733-995785235-2759475559-501
Surname :
UserPrincipalName :
Links