none
How would I query AD to compile a list of users with a particular right (e.g. SeTcbPrivilege, SeBackupPrivilege, SeDebugPrivilege, etc.) using Powershell? RRS feed

  • Question

  • Hello TechNet Community,

    I am currently using the UserRights.psm1 powershell module to try and compile a list of accounts that have the following rights:

    Act as part of the OS

    – SeTcbPrivilege

    Back up files and directories

    – SeBackupPrivilege

    Restore files and directories

    – SeRestorePrivilege

    Create a token object

    – SeCreateTokenPrivilege

    Debug programs

    – SeDebugPrivilege

    Impersonate a client

    – SeImpersonatePrivilege

    Manage auditing

    – SeAuditPrivilege

    Replace a process level token

    – SeAssignPrimaryTokenPrivilege

    Take ownership

    – SeTakeOwnershipPrivilege

    I have tried using this powershell script to compile the results but I'm unable to get an output  "Get-AccountsWithUserRight -Right InsertPrivilegeNameHere." If I could be given insight on how to accomplish this task I would be very grateful.  

    Thanks Again,

    Zook


    • Edited by Zook93 Monday, February 11, 2019 4:04 PM
    • Moved by Bill_Stewart Friday, March 15, 2019 7:29 PM This is not support forum for gallery scripts
    Monday, February 11, 2019 4:01 PM

All replies