List all users who can disable / enable user accounts

Hamdi Msalhi 1 Reputation point
2021-08-31T05:59:20.077+00:00

Hi,
I want a powershell command that list all users who has permission to disable / enable user accounts in Active Directory.

Thanks

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2021-08-31T19:46:46.607+00:00

    You can use this as a template: how_to_get_ad_user_permissions_report.html

    The permissions you'd look for are Read userAccountControl and Write userAccountControl

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.