How to use batch file to give a folder permission to the Everyone group

…衆ロ難τιáo~ 提交于 2019-11-30 23:47:17

问题


Im trying to add the group Everyone and give it modify permissions on a folder. Im using a batch file to try this. so for I have icacls "C:\Program Files (x86)\Program File" /grant:r Everyone:M But when I go and look at the permissions on the folder nothing has been changed.


回答1:


No need to put :r after /grant. Check the examples by typing icacls /?

Do like this:

icacls "C:\Program Files (x86)\Program File" /grant Everyone:M


来源:https://stackoverflow.com/questions/23526361/how-to-use-batch-file-to-give-a-folder-permission-to-the-everyone-group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!