I want to enable the audit policy on a file on the local computer of Win10. I hope this can be done by writing code or command line. I hope to get any help.
The following link describes the use of graphical operations to enable auditing. This is not what I want. I hope to complete similar functions by writing code or command lines.
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/apply-a-basic-audit-policy-on-a-file-or-folder
Thanks
Andrew