2010-04-04 回答
开始,所有程序,附件,命令提示符 ,右键以管理员身份运行。
如果没有,则把以下内容复制到文本文档,另存为后缀为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"