it is not on already.
COPY - This will turn off the Inheritance flag and
copy the Inherited ACL's
into Effective ACL's.
REMOVE - This will turn off the Inheritance flag and
will not copy the Inherited
ACL's. This is the opposite of ENABLE.
If switch is not present, /I will be ignored and
Inherited ACL's will remain untouched.
/L filename Filename for Logging. This can include a path name
if the file is not under the current directory.
File will be appended to, or created if it does not
exit. Must be Text file if it exists or error will occur.
If filename is omitted, the default name of XCACLS will
be used.
/Q Turn on Quiet mode. By default, it is off.
If it is turned on, there will be no display to the screen.
/DEBUG Turn on Debug mode. By default, it is off.
If it is turned on, there will be more information
displayed and/or logged. Information will show
Sub/Function Enter and Exit as well as other important
information.
/SERVER servername Enter a remote server to run script against.
/USER username Enter Username to impersonate for Remote Connections
(requires PASS switch). Will be ignored if it is for a Local Connection.
/PASS password Enter Password to go with USER switch
(requires USER switch).
Wildcard characters can be used to specify more than one file in a command, such as:
* Any string of zero or more characters
? Any single character
You can specify more than one user in a command.
You can combine access rights.==========================================================
青云翻译如下:
Xcacls.vbs 命令的语法
下面 xcacls.vbs /? 命令的输出描述了 Xcacls.vbs 命令的语法:
Usage:
XCACLS filename [/E] [/G user:perm;spec] [...] [/R user [...]]
[/F] [/S] [/T]
[/P user:perm;spec [...]] [/D user:perm;spec] [...]
[/O user] [/I ENABLE/COPY/REMOVE] [/N
[/L filename] [/Q] [/DEBUG]
filename [要求]如果单独地使用,它显示ACL。
(文件名能是一文件名并且能包括全部道路,目录名字orwildcard性格。
如果道路是丢失的,beunder当前的目录假定的。)
注意到:
- 如果它有诸如的空间或者特殊的性格,将文件名放在行情中 &, $, #, 等等.
- 如果文件名是一个目录,所有文件和在它之下的子目录将不被改变除非与F或者S是出席的.
/F [与目录或者通配符使用]这将改变所有在输入目录之下的文件但是将不横过子目录除非与T是也出席的.
如果文件名是一个目录,和与F将不是加以使用,没有文件将被触到。
/S [与目录或者通配符使用]这将改变所有在输入目录之下的subfolders但是将不横过子目录除非与T是也出席的。
如果文件名是一个目录,和与S将不是加以使用,没有子目录将被触到。
/T [仅仅与一个目录使用]横过每一子目录并且制定同样的改变。







