有人因為權限不足所以不能刪系統裡的檔案
本來我以為takeown指令人人都要會 還是有人不知XD
用這個就把takeown指令變成右鍵選單
下載完執行匯入後
往後只要在刪除不了的檔案上按右鍵 就可以點取得控制權 對檔案就變得有修改/刪除/移動的權利
XP用戶沒有這問題 所以不要用
我個人會直接在C槽把所有東西圈選起來 直接右鍵取得控制權 這樣C槽的所有檔案都獲得了權限
-------------------------------------------------------------------
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"