win10怎么获得administrator权限

2024-12-24 12:17:03
推荐回答(2个)
回答1:

 1、首先建立记事本,复制以下代码到记事本中,另存为.reg格式,双击注册表便可获取管理员权限。
  windows Registry Editor Version 5.00

  [-HKEY_CLASSES_ROOT*shellrunas]

  [HKEY_CLASSES_ROOT*shellrunas]

  @="获得超级管理员权限"

  "Icon"="C:windowsSystem32imageres.dll,-78"

  "NoworkingDirectory"=""

  [HKEY_CLASSES_ROOT*shellrunascommand]

  @="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_ROOTDirectoryshellrunas]

  [HKEY_CLASSES_ROOTDirectoryshellrunas]

  @="获得超级管理员权限"

  "Icon"="C:windowsSystem32imageres.dll,-78"

  "NoworkingDirectory"=""

  [HKEY_CLASSES_ROOTDirectoryshellrunascommand]

  @="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"

  [-HKEY_CLASSES_ROOTdllfileshell]

  [HKEY_CLASSES_ROOTdllfileshellrunas]

  @="获得超级管理员权限"

  "HasLUAShield"=""

  "NoworkingDirectory"=""

  [HKEY_CLASSES_ROOTdllfileshellrunascommand]

  @="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_ROOTDriveshellrunas]

  [HKEY_CLASSES_ROOTDriveshellrunas]

  @="获得超级管理员权限"

  "Icon"="C:windowsSystem32imageres.dll,-78"

  "NoworkingDirectory"=""

  [HKEY_CLASSES_ROOTDriveshellrunascommand]

  @="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"

回答2:

搜索CMD并右键点击以管理员身份运行:

输入命令:net user administrator /active:yes

这时我们可以看到管理员账户已开启了