批处理脚本,运行批处理脚本后,右键点击文件(夹),选择 取得所有权reg add "HKCR\*\shell\runas" /f /ve /t REG_SZ /d "取得所有权"
reg add "HKCR\*\shell\runas" /f /v "HasLUAShield" /t REG_SZ /d ""
reg add "HKCR\*\shell\runas" /f /v "NoWorkingDirectory" /t REG_SZ /d ""
reg add "HKCR\*\shell\runas\command" /f /ve /t REG_SZ /d "cmd.exe /c takeown /f "%%1" && icacls "%%1" /grant administrators:F"
reg add "HKCR\*\shell\runas\command" /f /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f "%%1" && icacls "%%1" /grant administrators:F"
reg add "HKCR\Directory\shell\runas" /f /ve /t REG_SZ /d "取得所有权"
reg add "HKCR\Directory\shell\runas" /f /v "HasLUAShield" /t REG_SZ /d ""
reg add "HKCR\Directory\shell\runas" /f /v "NoWorkingDirectory" /t REG_SZ /d ""
reg add "HKCR\Directory\shell\runas\command" /f /ve /t REG_SZ /d "cmd.exe /c takeown /f "%%1" /r /d y && icacls "%%1" /grant administrators:F /t"
reg add "HKCR\Directory\shell\runas\command" /f /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f "%%1" /r /d y && icacls "%%1" /grant administrators:F /t"
有结果就好 |