1. 程式人生 > >聯想Y470裝windows8 -- 兩天裝3遍的經驗總結,供小白鼠使用

聯想Y470裝windows8 -- 兩天裝3遍的經驗總結,供小白鼠使用

Windows Registry Editor Version 5.00



;恢復原始許可權 

[HKEY_CLASSES_ROOT\*\shell\runas-] 

@="恢復原始許可權"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""

; && takeown /f \"%1\"

[HKEY_CLASSES_ROOT\*\shell\runas-\command] 

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""


[HKEY_CLASSES_ROOT\exefile\shell\runas2-] 

@="恢復原始許可權"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""


[HKEY_CLASSES_ROOT\exefile\shell\runas2-\command] 

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""


[HKEY_CLASSES_ROOT\Directory\shell\runas-] 

@="恢復原始許可權"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""


[HKEY_CLASSES_ROOT\Directory\shell\runas-\command] 

@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""