question

Nowtside-5323 avatar image
0 Votes"
Nowtside-5323 asked IanXue-MSFT answered

How do you turn on auditing for a specific folder with CMD?

I have seen many powershell scripts that do this task but none of them seems to work in CMD. Powershell is disabled in our enviroment and i am trying to implement this feature during MDT deployment so i cant do it manually for that reason.

Is there any CMD command that turns on auditing and can change auditing settings on a specific folder?

windows-10-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

Hi,

As far as I know, there is no CMD command to set the auditing rules of folders. The icacls can only set the folder permissions.

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/icacls

You may consider disabling Windows PowerShell after the deployment is completed.

Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.