need to run this using admin privileges via windows PowerShell cmd
Get-ADUser -Filter * -SearchBase "ou=Sales,ou=West,dc=MyDomain,dc=com" | Select sAMAccountName, SID
ex: Get-ADUser -Filter * -SearchBase "ou=users,ou=department,dc=yourdomain,dc=com" | Select sAMAccountName, SID
Get-ADUser -Filter * -SearchBase "ou=Sales,ou=West,dc=MyDomain,dc=com" | Select sAMAccountName, SID
ex: Get-ADUser -Filter * -SearchBase "ou=users,ou=department,dc=yourdomain,dc=com" | Select sAMAccountName, SID
0 comments:
Post a Comment