Win8取得超级管理员权限的方法

时间:2026-02-14 02:59:04

1、方法很简单:

新建一个记事本将下面的代码Copy进去保存,记事本名字无所谓,记住将扩展名改为.reg就行了。

建好之后,双击这个reg文件(注册表文件)导入注册表,导入前会有提示让你选择,点是就行了。

导入进去之后,右击你要取得权限的文件夹,鼠标右键菜单中选择选择管理员权限就行了。

为了安全考虑,对一个文件操作完成之后,应当恢复成默认权限,此时在右键菜单中选择恢复原始权限就行了。

Win8取得超级管理员权限的方法

2、取得管理员权限

Windows Registry Editor Version 5.00

;取得文件修改权限  

[HKEY_CLASSES_ROOT\*\shell\runas]  

@="管理员权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,102"

"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]  

@="管理员权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,102"

"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]  

@="管理员权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,102"

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

3、恢复原始权限:

Windows Registry Editor Version 5.00

;恢复原始权限  

[HKEY_CLASSES_ROOT\*\shell\runas-]  

@="恢复原始权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""

; && takeown /f \"%1\"

[HKEY_CLASSES_ROOT\*\shell\runas-\command]  

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

[HKEY_CLASSES_ROOT\exefile\shell\runas2-]  

@="恢复原始权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas2-\command]  

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

[HKEY_CLASSES_ROOT\Directory\shell\runas-]  

@="恢复原始权限"

"Icon"="C:\\Windows\\System32\\imageres.dll,101"

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas-\command]  

@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%USERNAME%%\""


© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com