简体   繁体   中英

How to Change Local Security Policy using .NET

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..

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM