List all users who can disable / enable user accounts

Hamdi Msalhi 1 Reputation point

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


Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,429 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,416 Reputation points

    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