校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > 設置高級NTFS權限的工具 XCACLS.vbs

設置高級NTFS權限的工具 XCACLS.vbs

熱門標簽:DOTA地圖標注app 湖州手機外呼系統 汕頭外呼crm系統 聯通400電話去哪里申請啊 綿陽外呼線路 徐州客服外呼系統排名 百度地圖標注地址有什么影響 五華銷售外呼管理系統電話 軟通動力地圖標注專員
http://support.microsoft.com/kb/825751

Microsoft 以 Microsoft Visual Basic 腳本 (Xcacls.vbs) 的形式提供了 Extended Change Access Control List(擴展更改訪問控制列表)工具 (Xcacls.exe) 的更新版本。本文分步介紹如何使用 Xcacls.vbs 腳本修改和查看文件或文件夾的 NTFS 文件系統權限。 可以從命令行使用 Xcacls.vbs 設置所有可在 Microsoft Windows 資源管理器中訪問的文件系統安全選項。Xcacls.vbs 可顯示和修改文件的訪問控制列表 (ACL)。

注意:Xcacls.vbs 只與 Microsoft Windows 2000、Microsoft Windows XP 和 Microsoft Windows Server 2003 兼容。Microsoft 不支持 Xcacls.vbs。

回到頂端
設置和使用 Xcacls.vbs
要設置和使用 Xcacls.vbs,請按照下列步驟操作:
從以下 Microsoft 網站獲得 Xcacls.vbs 的最新版本:
http://download.microsoft.com/download/f/7/8/f786aaf3-a37b-45ab-b0a2-8c8c18bbf483/XCacls_Installer.exe (http://download.microsoft.com/download/f/7/8/f786aaf3-a37b-45ab-b0a2-8c8c18bbf483/xcacls_installer.exe)
雙擊“Xcacls_Installer.exe”。當提示您提供放置提取文件的位置時,請指定一個位于計算機的搜索路徑設置中的文件夾(如 C:\Windows)。
將默認腳本引擎從 Wscript 更改為 Cscript。(Xcacls.vbs 腳本最適合在 Cscript 下運行。)為此,請在命令提示符下鍵入以下內容,然后按 Enter:
cscript.exe /h:cscript
注意:將默認腳本引擎更改為 Cscript 只影響腳本向屏幕寫入的方式。Wscript 根據“確定”對話框分別寫入每一行。Cscript 將每一行寫入命令窗口。如果您不想更改默認腳本引擎,則必須使用以下命令運行腳本
cscript.exe xcacls.vbs
但是,如果將默認腳本更改為 Cscript,則可以使用以下命令運行該腳本:
xcacls.vbs
.
要查看 Xcacls.vbs 的命令語法,請在命令提示符處鍵入下面的命令:
xcacls.vbs /?
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 [Required] If used alone, it displays ACLs.
(Filename can be a filename, directory name or
wildcard characters and can include the whole
path. If path is missing, it is assumed to be
under the current directory.)
Notes:
- Put filename in quotes if it has spaces or
special characters such as , $, #, etc.
- If filename is a directory, all files and
subdirectories under it will NOT be changed
unless the /F or S is present.

/F [Used with Directory or Wildcard] This will change all
files under the inputted directory but will NOT
traverse subdirectories unless /T is also present.
If filename is a directory, and /F is not used, no
files will be touched.

/S [Used with Directory or Wildcard] This will change all
subfolders under the inputted directory but will NOT
traverse subdirectories unless /T is also present.
If filename is a directory, and /S is not used, no
subdirectories will be touched.

/T [Used only with a Directory] Traverses each
subdirectory and makes the same changes.
This switch will traverse directories only if the
filename is a directory or is using wildcard characters.
/E Edit ACL instead of replacing it.

/G user:GUI Grant security permissions similar to Windows GUI
standard (non-advanced) choices.
/G user:Perm;Spec Grant specified user access rights.
(/G adds to existing rights for user)

User: If User has spaces in it, enclose it in quotes.
If User contains #machine#, it will replace
#machine# with the actual machine name if it is a
non-domain controller, and replace it with the
actual domain name if it is a domain controller.

New to 3.0: User can be a string representing
the actual SID, but MUST be lead by SID#
Example: SID#S-1-5-21-2127521184-160...
(SID string shown has been shortened)
(If any user has SID# then globally all
matches must match the SID (not name)
so if your intention is to apply changes
to all accounts that match Domain\User
then do not specify SID# as one of the
users.)

GUI: Is for standard rights and can be:
Permissions...
F Full control
M Modify
X read and eXecute
L List folder contents
R Read
W Write
Note: If a ; is present, this will be considered
a Perm;Spec parameter pair.

Perm: Is for "Files Only" and can be:
Permissions...
F Full control
M Modify
X read and eXecute
R Read
W Write
Advanced...
D Take Ownership
C Change Permissions
B Read Permissions
A Delete
9 Write Attributes
8 Read Attributes
7 Delete Subfolders and Files
6 Traverse Folder / Execute File
5 Write Extended Attributes
4 Read Extended Attributes
3 Create Folders / Append Data
2 Create Files / Write Data
1 List Folder / Read Data
Spec is for "Folder and Subfolders only" and has the
same choices as Perm.

/R user Revoke specified user's access rights.
(Will remove any Allowed or Denied ACL's for user.)

/P user:GUI Replace security permissions similar to standard choices.

/P user:perm;spec Replace specified user's access rights.
For access right specification see /G option.
(/P behaves like /G if there are no rights set for user.)

/D user:GUI Deny security permissions similar to standard choices.
/D user:perm;spec Deny specified user access rights.
For access right specification see /G option.
(/D adds to existing rights for user.)

/O user Change the Ownership to this user or group.

/I switch Inheritance flag. If omitted, the default is to not touch
Inherited ACL's. Switch can be:
ENABLE - This will turn on the Inheritance flag if
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 還可用于查看文件或文件夾的權限。 例如,如果您有一個名為 C:\Test 的文件夾,在命令提示符處鍵入以下命令以查看文件夾權限,然后按 Enter:
xcacls.vbs c:\test
下面的示例是一個典型結果:
復制代碼 代碼如下:

C:\&;XCACLS.VBS c:\test
Microsoft (R) Windows Script Host 5.6
版權所有 (C) Microsoft Corporation 1996-2001。保留所有權利。

Starting XCACLS.VBS (Version: 3.4) Script at 6/11/2003 10:55:21 AM

Startup directory:
"C:\test"

Arguments Used:
Filename = "c:\test"



**************************************************************************
Directory:C:\test

Permissions:
Type Username Permissions Inheritance

Allowed BUILTIN\Administrators Full Control This Folder, Subfolde
Allowed NT AUTHORITY\SYSTEM Full Control This Folder, Subfolde
Allowed Domain1\User1 Full Control This Folder Only
Allowed \CREATOR OWNER Special (Unknown) Subfolders and Files
Allowed BUILTIN\Users Read and Execute This Folder, Subfolde
Allowed BUILTIN\Users Create Folders / Appe This Folder and Subfo
Allowed BUILTIN\Users Create Files / Write This Folder and Subfo

No Auditing set

Owner:Domain1\User1

注意:在該示例中,xcacls.vbs c:\test 命令的輸出與顯示在圖形用戶界面 (GUI) 的文本一致。命令窗口的一些文字不完整。

輸出還給出了腳本的版本、啟動目錄和使用的參數。

您還可以使用通配符來顯示目錄下匹配的文件。例如,如果鍵入以下命令,將會顯示 C:\Test 文件夾中所有具有“.log”擴展名的文件:
xcacls.vbs c:\test\*.log
示例

下列 Xcacls.vbs 命令提供 Xcacls.vbs 用法的一些示例:

xcacls.vbs c:\test\ /g domain\testuser1:f /f /t /e
該命令可編輯現有權限。它授予 Domain\TestUser1 完全控制 C:\Test 下所有文件的權限,遍歷 C:\Test 下的子文件夾,然后更改找到的所有文件。該命令不觸及目錄。
xcacls.vbs c:\test\ /g domain\testuser1:f /s /l "c:\xcacls.log"
該命令可替換現有權限。它授予 Domain\TestUser1 完全控制 C:\Test 下所有子文件夾的權限,而且記錄到 C:\Xcacls.log。該命令不觸及文件,并且不遍歷目錄。
xcacls.vbs c:\test\readme.txt /o "machinea\group1"
該命令將自述文件的所有者更改為組 MachineA\Group1。
xcacls.vbs c:\test\badcode.exe /r "machinea\group1" /r "domain\testuser1"
該命令撤消 MachineA\Group1 和 Domain\TestUser1 的 C:\Test\Badcode.exe 權限。
xcacls.vbs c:\test\subdir1 /i enable /q
該命令將打開文件夾 C:\Test\Subdir1 上的繼承。該命令將取消任何屏幕輸出。
xcacls.vbs \\servera\sharez\testpage.htm /p "domain\group2":14
此命令通過使用 Windows Management Instrumentation (WMI) 遠程連接到 \\ServerA\ShareZ。然后獲取用于該共享的本地路徑,在該路徑下,它更改 Testpage.htm 上的權限。它原封保留 Domain\Group2 的現有權限,但是添加權限 1(讀取數據)和權限 4(讀取擴展屬性)。該命令放棄此文件上的其他權限,原因是未使用 /e 開關。
xcacls.vbs d:\default.htm /g "domain\group2":f /server servera /user servera\admin /pass password /e
該命令使用 WMI 作為 ServerA\Admin 遠程連接到 ServerA,然后將 Default.htm 上的完全權限授予 Domain\Group2。Domain\Group2 的現有權限丟失,但保留文件上的其他權限。
您可能感興趣的文章:
  • 使用xcacls.vbs(cacls.exe)修改NTFS權限說明(中文版)
  • Cacls 顯示或修改任意訪問控制列表 (DACL) 文件
  • 使用Cacls命令設置服務器文件訪問權限
  • cacls命令設置文件及其文件夾權限的方法

標簽:濟南 清遠 新余 邯鄲 棗莊 廣東 克拉瑪依 內江

巨人網絡通訊聲明:本文標題《設置高級NTFS權限的工具 XCACLS.vbs》,本文關鍵詞  設置,高級,NTFS,權限,的,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《設置高級NTFS權限的工具 XCACLS.vbs》相關的同類信息!
  • 本頁收集關于設置高級NTFS權限的工具 XCACLS.vbs的相關信息資訊供網民參考!
  • 推薦文章
    校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃
    国产在线精品视频| 亚洲高清在线视频| 日韩欧美国产麻豆| 欧美一二三区精品| 日韩精品中文字幕在线不卡尤物 | 成人国产精品免费观看动漫| 国产一区二区三区最好精华液| 久久国产精品99久久久久久老狼 | 东方aⅴ免费观看久久av| 国产精品69久久久久水密桃 | 中文字幕一区二区三区av| 国产精品免费丝袜| 亚洲精品视频一区二区| 国产欧美久久久精品影院| 国产精品久久久久三级| 亚洲国产人成综合网站| 日本亚洲三级在线| 高清久久久久久| 91网页版在线| 在线电影院国产精品| 欧美va亚洲va香蕉在线| 国产精品视频在线看| 亚洲综合激情另类小说区| 日韩经典一区二区| 国产精品一级在线| 色偷偷久久人人79超碰人人澡| 欧洲精品一区二区三区在线观看| 9191久久久久久久久久久| 欧美成人video| 亚洲精品国产a| 美女国产一区二区| 91女人视频在线观看| 在线不卡一区二区| 国产精品美女久久久久久| 亚洲国产日韩a在线播放性色| 美女一区二区视频| eeuss鲁片一区二区三区在线观看| 欧美亚洲禁片免费| 久久久不卡网国产精品二区| 亚洲国产中文字幕在线视频综合| 激情综合网激情| 在线观看日韩毛片| 国产欧美va欧美不卡在线| 亚洲一区二区在线播放相泽| 国产一区高清在线| 欧美日本乱大交xxxxx| 国产欧美日韩另类视频免费观看| 亚洲chinese男男1069| 成人三级伦理片| 91精品国产高清一区二区三区| 国产精品理论在线观看| 老司机精品视频在线| 欧美三级电影网站| 国产精品日韩成人| 国产一区二区不卡| 欧美一区二区三区在| 一区二区三区色| 成人激情综合网站| 337p日本欧洲亚洲大胆精品 | 亚洲免费资源在线播放| 国产精品原创巨作av| 91精品国产丝袜白色高跟鞋| 亚洲柠檬福利资源导航| 风流少妇一区二区| 久久影音资源网| 久久99久久99| 精品久久久影院| 日本伊人精品一区二区三区观看方式| 色av一区二区| 亚洲欧美一区二区久久 | 欧美亚洲国产bt| 亚洲一区二区综合| 欧美中文字幕一区二区三区| 亚洲区小说区图片区qvod| 99久久久精品| 亚洲美女屁股眼交| 日本精品视频一区二区三区| 亚洲精品五月天| 在线亚洲欧美专区二区| 一区二区三区电影在线播| 91成人网在线| 亚洲18色成人| 日韩欧美区一区二| 国产一区在线视频| 国产精品毛片大码女人| 91无套直看片红桃| 亚洲国产sm捆绑调教视频| 欧美日韩成人综合天天影院| 日韩经典中文字幕一区| 日韩欧美精品在线视频| 精品一区二区在线观看| 国产人妖乱国产精品人妖| 国产mv日韩mv欧美| 综合久久综合久久| 欧美三级午夜理伦三级中视频| 日韩精品乱码免费| 欧美精品一区二区久久久| 国产成人亚洲综合a∨婷婷| 中文字幕在线观看不卡| 欧美色图免费看| 国产在线视频一区二区三区| 欧美国产精品一区二区| 欧美亚洲动漫另类| 九色|91porny| 一区二区三区中文免费| 日韩欧美国产精品一区| 岛国精品一区二区| 亚洲成人自拍一区| 国产欧美一区二区三区在线老狼| 99久久国产免费看| 青青草国产精品97视觉盛宴| 国产亚洲综合在线| 欧美日韩三级视频| 国产精品1024| 日韩激情视频网站| 成人免费一区二区三区在线观看| 欧美亚洲高清一区| av在线不卡网| 国内精品国产成人国产三级粉色 | 欧美一区二区在线不卡| av综合在线播放| 激情综合色综合久久| 亚洲综合色丁香婷婷六月图片| 日韩欧美国产高清| 欧美探花视频资源| 懂色av一区二区三区免费观看| 丝袜美腿亚洲综合| 一区二区三区在线高清| 国产精品污www在线观看| 69久久夜色精品国产69蝌蚪网| 成人精品国产福利| 国产一区二区三区四区五区美女 | 一区二区三区资源| 国产精品久久久久婷婷| 久久久精品免费网站| 欧美一区二区在线不卡| 欧美亚洲图片小说| 色噜噜狠狠色综合中国| av午夜精品一区二区三区| 激情深爱一区二区| 蜜臀av性久久久久av蜜臀妖精| 亚洲一级二级在线| 亚洲欧美激情在线| 136国产福利精品导航| 亚洲国产激情av| 国产欧美视频一区二区| 26uuu国产电影一区二区| 日韩精品一区二区三区视频在线观看 | 成人精品在线视频观看| 国产成人综合在线播放| 国产精品一区二区黑丝| 国产麻豆视频一区| 国产99久久久久| 国产精品99久久久久久似苏梦涵| 老司机一区二区| 韩国精品久久久| 风流少妇一区二区| www.66久久| 91麻豆国产精品久久| 欧美色综合影院| 欧美精品自拍偷拍动漫精品| 91精品婷婷国产综合久久竹菊| 欧美日韩电影一区| 精品日韩在线观看| 精品成人佐山爱一区二区| 亚洲精品在线一区二区| 国产人伦精品一区二区| 亚洲天堂精品在线观看| 亚洲bdsm女犯bdsm网站| 美女网站色91| 国产精品99久久久久久有的能看 | 久久日韩粉嫩一区二区三区| 国产亚洲欧洲997久久综合| 欧美激情一区二区三区不卡 | 国产福利电影一区二区三区| 成人黄色在线网站| 欧美调教femdomvk| 久久夜色精品一区| 成人免费一区二区三区视频| 亚洲国产精品综合小说图片区| 日韩电影在线看| 盗摄精品av一区二区三区| 一本色道久久综合亚洲91| 日韩一区二区电影| 国产精品传媒视频| 美女任你摸久久| 99国产精品久| 日韩一二三四区| 中文字幕日本乱码精品影院| 亚洲国产视频网站| 懂色av中文一区二区三区| 在线观看日韩一区| 国产日韩欧美精品在线| 亚洲mv大片欧洲mv大片精品| 国产成人免费av在线| 欧美日韩aaa| 国产精品久久久久影院亚瑟 | 欧美亚洲一区三区| 中国色在线观看另类| 久久不见久久见中文字幕免费|