• win7获取管理员权限


    将以下内容复制到记事本保存,更改后缀名为reg,运行即可

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT*shell unas]
    @="管理员取得所有权"
    "NoWorkingDirectory"=""
    [HKEY_CLASSES_ROOT*shell unascommand]
    @="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_ROOTexefileshell unas2]
    @="管理员取得所有权"
    "NoWorkingDirectory"=""
    [HKEY_CLASSES_ROOTexefileshell unas2command]
    @="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_ROOTDirectoryshell unas]
    @="管理员取得所有权"
    "NoWorkingDirectory"=""
    [HKEY_CLASSES_ROOTDirectoryshell unascommand]
    @="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"

  • 相关阅读:
    HDU 2047 阿牛的EOF牛肉串
    HDU 2015 偶数求和
    HDU 2029 算菜价
    HDU 2028 Lowest Common Multiple Plus
    动态函数库设计
    静态函数库设计
    Linux编程规范
    Linux应用程序地址布局
    Core Dump 程序故障分析
    W-D-S-UART编程
  • 原文地址:https://www.cnblogs.com/--zl--/p/8006407.html
Copyright © 2020-2023  润新知