容易的方法採取歸屬和格蘭特在景色訪問文件或目錄

在窗口景色,有許多文件,并且目錄特別是那些操作系統的文件加上窗口和窗口\ 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 (其次)排行。

重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。

分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.



9 Responses to “Easier Way to Take Ownership and Grant Access Files or Directories in Vista”

  1. lord death 202
    May 25th, 2007 16:07
    1

    great tip to hack

  2. How to Take Ownership and Grant Permissions in Windows Vista » My Digital Life
    May 31st, 2007 04:50
    2

    [...] 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 [...]

  3. Eric J
    October 12th, 2007 00:01
    3

    The download link for the TakeControlOf.zip is no longer working (at least for me). Has it been taken down?

  4. Eric J
    October 12th, 2007 00:02
    4

    Or does anyone know of another script like it?

  5. » 10 things that can go wrong when you upgrade your operating system | 10 Things | TechRepublic.com
    December 17th, 2007 16:01
    5

    [...] 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.” [...]

  6. Jutha
    March 20th, 2008 02:03
    6

    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.

  7. Delete Undeletable Files in Windows Vista » My Digital Life
    April 24th, 2008 21:59
    7

    [...] can also prepared a Windows shell batch script that automate the process for easy take back the files and folders which is inaccessible and [...]

  8. How to Take Ownership and Full Control Permissions of Files and Folders in Vista » Tip and Trick
    April 24th, 2008 22:09
    8

    [...] 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 [...]

  9. Mike
    June 17th, 2008 22:53
    9

    does anyone run this and it goes on forever?

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

take ownership vista - vista take ownership - take ownership in vista - TakeControlOf.zip - takecontrolof - vista ownership - vista change file owner - icacls examples - "unable to set new owner" - icacls download - how to take ownership in vista - vista unable to set new owner - take ownership - all - vista change file ownership - UNABLE TO SET NEW OWNER VISTA - download icacls - grant full access permission vista - ownership vista - unable to set new owner access is denied - change file owner vista - take ownership command line - TakeControlOf.zip - command line take ownership - take ownership cmd - vista takeown - vista ownership privileges - vista system32 access denied - takecontrolof.cmd - take ownership and grant full access permission - vista system32 access - take ownership script - vista system32 permissions - take ownership of vista - ownership privileges vista - cmd take ownership - vista grant full access permission - grant full access permission in vista - icacls /grant - unable to set new owner access denied - unable to set new owner - take ownership download - change file owner in vista - change file Permissions vista - take ownership and grant full access permission Vista - take ownership and grant full access permission - file ownership vista - batch take ownership - how to take ownership vista - vista "unable to set new owner" - vista takeownership - "unable to set new owner" vista - ownership and grant full access permission - ownership and grant full access permission - vista take ownership command line - icacls grant - grant full access vista - Change Ownership in Vista - icacls Access Denied - how to grant full permission in vista - download takeown - changing ownership of files in vista - script take ownership - change file ownership vista - takeown - vista system32 permission - how to take ownership and grant full access permission in vista - ownership in vista - windows xp command line take ownership - Takeown download - how to grant full access in vista - take ownership on vista - change file ownership in vista - icacls ownership - changing file ownership vista -