Avatar of hypercube
Flag for United States of America

asked on 

User Rights Assignment - Adding a Username using powershell

Using the Windows GUI, I would be doing this:

      Computer Configuration / Windows Settings / Security Settings / Local Policies
                              Audit Policy
                                    Each Policy: Enable Success and Failure
User Rights Assignment
Manage Auditing and Security Log  … add “[username]”

Now I want to automate doing this using powershell.  I've found the script by Tony Pombo but it seems unwieldy for such a simple task and I've had lots of problems getting the commands to be recognized at all.


Avatar of undefined
Last Comment

8/22/2022 - Mon