I'm trying to change policies in Local Group Policy Editor
under Computer Configuration > Windows Settings > Security Settings > Advance Audit Policy Configuration > System Audit Policy – Local Group Policy Object
but using a PowerShell script.
auditpol /set /category:"Account Logon","Account Management","Detailed Tracking","DS Access","Logon/Logoff","Object Access","Policy Change","Privilege Use","System" /failure:enable /success:disable
gpupdate /force
The result of auditpol /get /category:*
before and after executing that script differ and everything seems solved. However, when opening Local Group Policy Editor
the changes are clearly not consolidated. After a reboot, running auditpol /get /category:*
shows that nothing's differed from the first state (Not Configured).
It might also be worth noting that the OS is Windows Server 2016 Datacenter, not joined to any domain or organization. And changes made through the GUI in Local Group Policy Editor
take effect permanently.
P.S. I'm aware that there is another question which might be related to this one, but it's not properly answered in any way.