كيف تستعرض كل المستخدمين فى Active Directory بإستخدام امر Powershell

اذا اردت استعراض كل المستخدمين فى ال Active Directory  بإستخدام امر powershell  قم باستخدام الامر التالى

get-user -resultsize 2000 | Format-Table name, UserAccountControl

هذا سيستعرض لك كل المستخدمين وحالاتهم ان كانوا مفعلين ام لا

 

اما اذا اردت استخدام powershell  فى معرفة المستخدمين الغير مفعلين فقط فأكتب التالى

get-user -resultsize 2000 |where { $_.UserAccountControl -match “AccountDisabled”}

شارك هذه المعلومات مع غيرك...Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0
 

Be the first to comment

Leave a Reply

Your email address will not be published.


*



*