I need to compare AD users permissions (one user can “unset” an attribute and another cannot, both can change it).
How can I dump/compare user account “effective permissions” which I find when I go to user account > Security > Advanced > Effective Permissions (and select an user account) with powershell?
Using Quest Free PowerShell Commands for Active Directory is simple:
or better way:
This return all effective permission Inherited or Explicit assigned for the user ‘useraccountname’
The comparison can be made with
compare-object.A very simple example: