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 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
    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