Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Retrieving data from AD accounts

$
0
0

Hello,

Is it possible to get the permissions assigned to groups or users under the security tab. I'm specficy looking for the reset password allow. I need to find out how many accounts and the SamAccountName of the account that have this permission.

Can PowerShell retrieve this data?

 

I have tried using the below code but I cant seem to get the reset password allow. 

(Get-ACL "AD:$((Get-ADUser <SamAccountName>).distinguishedname)").access | ft identityreference, accesscontroltype -AutoSize


Viewing all articles
Browse latest Browse all 6937

Trending Articles