如何使用批处理命令设置目录的权限以允许域用户完全访问
基本上,我有一个域用户需要具有完全访问权限的目录。他们使用批处理文件打开用于工作的软件,并且该软件需要完全访问其 C 驱动器上的此目录。
我想将命令添加到批处理文件中以确保始终如此。
Basically, I have a directory that domain users need to have full access to. They use a batch file to open the piece of software that they use for their work, and this piece of software needs full access to this directory on their C Drive.
I want to add commands to the batch file to make sure this is always the case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够像这样使用 cacls:
您可能需要以管理员身份运行它才能正常工作。除非您的域用户具有管理员权限,否则您将需要考虑另一种解决方法。
You should be able to use
cacls
like this:You will probably need to run this as admin though for it to work though. Unless your domain users have admin rights then you will need to look at another way of going about it.