管理員取得所有權.reg NTFS不能刪檔時的小東西 - Windows

Table of Contents

這是我在對岸看到的
裝WIN7之後常常發現有些東西刪不掉
因為你沒有檔案的所有權
平常要按內容去安全性改擁有者再改權限一堆動作...
登錄這個登錄檔之後右鍵會有個管理員取得所有權
就可以一次完成然後就可以刪掉大部分的檔案了(有設定特殊權限的沒辦法)
沒管理員帳號應該不行吧 我沒試過..

下面有斷行要自己接回去= =
或是去便當狗領吧... http://www.badongo.com/file/16330174

-----------------------------------------------------------------------------
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"

--

All Comments