5
权限,我有以下脚本,它工作正常,但我怎么设置它来保持安全设置和添加额外的“人”安全组...更改所有者和文件夹
...和可以cacls
更改文件夹的“所有者”?
我累/e
编辑而不是替换,但它不喜欢它出于某种原因?
Set WshShell = CreateObject("WScript.Shell")
strFolder = "D:\test"
setPerms = "%COMSPEC% /c echo Y| C:\windows\system32\cacls.exe """ & _
strFolder & """ /G mydomain\myusername:F & pause" 'added pause to see what the outcome is
WshShell.run setPerms