Avatar of hypercube
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:

gpedit.msc
      Computer Configuration / Windows Settings / Security Settings / Local Policies
                              Audit Policy
                                    Each Policy: Enable Success and Failure
                              THEN:
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.

Suggestions?
Powershell

Avatar of undefined
Last Comment
hypercube

8/22/2022 - Mon