Guruh a'zolarini ro'yxatlash (Get-ADGroupMember)
Sintaksis
PowerShellNusxalash
Get-ADGroupMember
[-AuthType ]
[-Credential
]
[-Identity]
[-Partition ]
[-Recursive]
[-Server ]
[]
Tavsif
Get -ADGroupMember cmdleti Active Directory guruhi a'zolarini oladi. A'zolar foydalanuvchilar, guruhlar va kompyuterlar bo'lishi mumkin.
Identity parametri kirish uchun Active Directory guruhini belgilaydi. Guruhni alohida nom, GUID, xavfsizlik identifikatori yoki Security Account Manager (SAM) hisob nomi bilan aniqlashingiz mumkin. Shuningdek, siz guruh ob'ektini quvur liniyasi orqali o'tkazish orqali guruhni belgilashingiz mumkin. Misol uchun, siz guruh ob'ektini olish uchun Get-ADGroup cmdletidan foydalanishingiz mumkin va keyin ob'ektni quvur liniyasi orqali Get-ADGroupMember cmdletiga o'tkazishingiz mumkin.
Agar Rekursiv parametr ko'rsatilgan bo'lsa, cmdlet guruhning ierarxiyasidagi bolalar ob'ektlarini o'z ichiga olmaydigan barcha a'zolarni oladi. Misol uchun, agar SaraDavisReports guruhida KarenToh foydalanuvchisi va JohnSmithReports guruhi va JohnSmithReportsda JoshPollock foydalanuvchisi bo'lsa, u holda cmdlet KarenToh va JoshPollockni qaytaradi.
Active Directory Lightweight Directory Services (AD LDS) muhitlari uchun Partition parametri quyidagi ikkita shartdan tashqari ko'rsatilishi kerak:
Cmdlet Active Directory provayder diskidan ishga tushiriladi.
AD LDS muhiti uchun standart nomlash konteksti yoki bo'limi belgilangan. AD LDS muhiti uchun standart nomlash kontekstini belgilash uchun AD LDS misoli uchun Active Directory katalog xizmati agenti obyektining ( nTDSDSA ) msDS-defaultNamingContext xususiyatini o‘rnating.
Misollar 1-misol: Guruhning barcha a'zolarini oling
PowerShellNusxalash
PS C:\> Get-ADGroupMember
cmdlet Get-ADGroupMember at command pipeline position 1
Supply values for the following parameters: (Type !? for Help.)
Identity: Administrators
distinguishedName : CN=Domain Admins,CN=Users,DC=Fabrikam,DC=com
name : Domain Admins
objectClass : group
objectGUID : 5ccc6037-c2c9-42be-8e92-c8f98afd0011
SamAccountName : Domain Admins
SID : S-1-5-21-41432690-3719764436-1984117282-512
distinguishedName : CN=Enterprise Admins,CN=Users,DC=Fabrikam,DC=com
name : Enterprise Admins
objectClass : group
objectGUID : 0215b0a5-aea1-40da-b598-720efe930ddf
SamAccountName : Enterprise Admins
SID : S-1-5-21-41432690-3719764436-1984117282-519
distinguishedName : CN=LabAdmin,CN=Users,DC=Fabrikam,DC=com
name : LabAdmin
objectClass : user
objectGUID : ab7c269d-aec5-4fcc-aebe-6cd1a2e6cd53
SamAccountName : LabAdmin
SID : S-1-5-21-41432690-3719764436-1984117282-1000
distinguishedName : CN=Administrator,CN=Users,DC=Fabrikam,DC=com
name : Administrator
objectClass : user
objectGUID : 994f46e6-c62c-483f-a6cf-124197b6a959
SamAccountName : Administrator
SID : S-1-5-21-41432690-3719764436-1984117282-500
Bu buyruq Administrators guruhining barcha a'zolarini oladi.
Do'stlaringiz bilan baham: |