容易的方法采取归属和格兰特在景色访问文件或目录
在窗口景色,有许多文件,并且目录特别是那些操作系统的文件加上窗口和窗口\ System32文件夹被保护了。 这些被保护的系统文件不是属于任何用户或小组,反而由TrustedInstaller拥有,与均匀管理员或管理员小组没有修改也不对他们的写入。 因而,如果您打算操作或替换文件,您将遇到通入被否认的错误,即使您是管理员并且有 残疾UAC 或已经在海拔方式下为应用设法访问。
在这种情况下,用户在对象大概将必须用鼠标右键单击,然后访问对象的物产。 然后用户必须点击安全制表符,点击先进的按钮,点击所有者制表符,然后执行几点击和确认采取对象的归属。 整体过程必须再重覆授予读写修改或完全控制存取权对用户。 整体过程花长的时间,麻烦,介入许多点击和步。 要简化过程,简单地下载TakeControlOf.cm d命令行批剧本,将自动地采取归属并且通过分配新的ACLs授予完全控制存取权(存取控制表)到文件或目录输入到命令。
下载 TakeControlOf.zip 从论坛。
TakeControlOf.cm d分别利用二命令线公共事业takeown (文件或目录的作为归属)和icacls (集合新的ACLs在文件或目录)。 完全控制访问权限将被给管理员小组。
要使用批剧本,简单地发射 高的指令提示然后跑剧本。 下面是同样例子(应该发出指令从目录,您存放TakeControlOf.cm d剧本) :
TakeControlOf C:\Windows\Test _File.exe
TakeControlOf C:\Test _Directory
注意,如果您指定目录,剧本意志递归地运作包括所有补充指南. 要改变这行为,编辑TakeControlOf.cm d并且从takeown (第一条)线去除/r,并且/t从icacls (其次)排行。
重要: 这是现状提供,不用保单的机器翻译的页。 计算机翻译也许是难了解。 参见 原始的英国文章 每当可能。
分享并且贡献或者得到技术支持并且帮助在 我的数字式生活论坛.
相关文章
- 增加作为归属选择到文件和文件夹上下文菜单在景色
- Delete Undeletable Files in Windows Vista
- How to Take Ownership and Grant Permissions in Windows Vista
- Change Group Ownership of Symbolic Links in Unix or Linux
- Tips to Slim Down Vista
- iCACLS Vista Command Prompt Tool to Manage ACLs
- Fix Error 80070002 When Using Windows Update in Vista
- Replace Notepad with Another Text Editor (eg. Notepad2 and Notepad++) in Vista
- Hack to Hide and Remove Vista SP1 RC Preview v.258 Evaluation Watermark on Desktop
- Patched user32.dll.mui to Remove Evaluation Copy Text on Desktop of Vista SP1 RC1

























May 25th, 2007 16:07
great tip to hack
May 31st, 2007 04:50
[...] to take ownership and grant full control permissions from command line. Or you can also prepare a Windows shell batch script that easily perform the task by typing simple command. Get help or contribute tips or tricks at My [...]
October 12th, 2007 00:01
The download link for the TakeControlOf.zip is no longer working (at least for me). Has it been taken down?
October 12th, 2007 00:02
Or does anyone know of another script like it?
December 17th, 2007 16:01
[...] This can also happen with real files and folders if your user account information has changed in the new version of Windows. Or you might be trying to access system files. You may be able to fix the problem by taking ownership of the object. You’ll need to be logged on as an administrator to do that. For more on how this works, see “Easier Way to Take Ownership and Grant Access Files or Directories in Vista.” [...]
March 20th, 2008 02:03
THANK YOU SOOOOOOO MUCH. I was foaming at the mouth after I had to buy a new lappie cuz my old one died and when I thought I had to change permissions on every file by hand I was just fuming. It goes to show that the command line is just the most wonderful and conistent and comforting way to get things done.
April 24th, 2008 21:59
[...] can also prepared a Windows shell batch script that automate the process for easy take back the files and folders which is inaccessible and [...]
April 24th, 2008 22:09
[...] two commands have been scripted in Windows command shell batch script that easily perform the task of taking ownership and grant full control permissions to [...]
June 17th, 2008 22:53
does anyone run this and it goes on forever?