Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 旗艦版存取 C:\Documents and Settings 資料夾方法

編輯:Windows 7 系統介紹

Windows 7 以連結點 (Junction) 方式保留 C:\Documents and Settings 相容舊版程式,預設拒絕存取。若需進入,需取得資料夾擁有權。

步驟

  1. 右鍵「電腦」→「管理」→「本機使用者和群組」→「使用者」,找到 Administrator,取消勾選「帳號已停用」。
  2. 建立文字檔貼入以下登錄內容,存為 TakeOwnership.reg 並匯入:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理員取得所有權"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="管理員取得所有權"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="管理員取得所有權"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
  1. 右鍵目標資料夾(或 C:\Documents and Settings),選擇「管理員取得所有權」,即可存取內容。

此法同樣適用於其他需提權存取的系統資料夾。

Copyright © Windows教程網 All Rights Reserved