zoukankan      html  css  js  c++  java
  • Windows7恢复右键 管理员取得所有权限

    把下面的代码保存为 admin.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"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"



    REFERENCES:http://apps.hi.baidu.com/share/detail/20344530


    ---------------------------------------------------------------------------------------------------------------------------------
    copyright:http://www.cnblogs.com/anee/
  • 相关阅读:
    XML  XmlDocument
    程序集报错
    程序打开网页
    写入文件txt
    读取文件txt
    MSM8953中Android系统添加启动脚本.rc文件
    SELinux基础知识
    嵌入式Linux设备查看USB相关信息
    Linux内核态文件读写相关函数API
    C语言中sscanf()函数相关用法
  • 原文地址:https://www.cnblogs.com/anee/p/2675737.html
Copyright © 2011-2022 走看看