I have created a batch file. This batch file contains several DOS command to enable audit policy. For example, it contains: Auditpol /set /subcategory:"Logon" /success:enable /failure:enable
Auditpol /set /subcategory:"Logoff" /success:enable /failure:disable
When I ran the batch file, it said : the command was successfully executed. Though when I did gpedit and checked the setting, it seem the setting did not change.
Anyone knows the reason why it said successful but the settings still did not change?