3

I have read too many topics about reading from Local Security Policy, but I need to change its values, spesifically "Audit system events".

How to do that using .NET environment..

Abdallah Nasir
  • 607
  • 6
  • 33

1 Answers1

2

I have solved the problem, by running this command in the command line cmd.exe:

Auditpol /set /category:system /success:enable /failure:disable

in order to do that I saved it in a .bat file and run it as administrator.

rae1
  • 6,066
  • 4
  • 27
  • 48
Abdallah Nasir
  • 607
  • 6
  • 33