win8.1怎么获取权限呢
相关话题
你知道win8.1怎么获取权限吗?许多人都不了解,那么win8.1获取权限的方法是什么呢?下面是小编收集的关于win8.1怎么获取权限的解决方法,希望对你有所帮助。
win8.1获取权限的方法
右键点击桌面新建文档
将名称改为******.reg
右键,点击编辑
输入
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shellrunas]
[HKEY_CLASSES_ROOT*shellrunas]
@="获取超级管理员权限"
"Icon"="C:\Windows\System32\imageres.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:\Windows\System32\imageres.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:\Windows\System32\imageres.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"
然后保存
双击这个reg,可以发现右键文件时有如图所示