Windows8系统取得超级管理员权限的方法
时间:2022-02-16 14:46:03
这篇文章主要介绍了Windows8系统取得超级管理员权限的方法,本文使用BAT脚本实现获取超级管理员和恢复原始权限,需要的朋友可以参考下
使用Win8在找开系统文件夹是经常提示:无法访问……,拒绝访问。就是没有超级管理员权限所致,取得Win8超级管理员权限很容易,导入一个注册表文件就可以实现,并且操作简单。
不管是使用Win8还是Win7,在打开C盘的一些文件夹时,经常会遇到无法访问的情况,以致于想删除已经确认没有用的文件时删除不了。Win7下很好办,各种工具皆可实现在右键菜单添加取得管理员权限按钮。现在主要介绍Win8下如何为鼠标右键菜单添加取得管理员权限选项。
有些同学会问,我的账户已经是管理员了,为什么还会权限不足呀。简单点说来,在Windows Administrators权限之上还有一项权限,具体叫啥我现在也记不清了,它才是最高管理员。
Win8取得超级管理员权限
方法很简单:
1.新建一个记事本将下面的代码Copy进去保存,记事本名字无所谓,记住将扩展名改为.reg就行了。
2.建好之后,双击这个reg文件(注册表文件)导入注册表,导入前会有提示让你选择,点是就行了。
3.导入进去之后,右击你要取得权限的文件夹,鼠标右键菜单中选择选择管理员权限就行了。
4.为了安全考虑,对一个文件操作完成之后,应当恢复成默认权限,此时在右键菜单中选择恢复原始权限就行了。
1、取得管理员权限
复制代码代码如下:
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"
2、恢复原始权限:
复制代码代码如下:
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%%\""
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel2003实现姓名对齐的技巧
硬盘使用DiskGenius分区工具4K对齐
![](https://img.aspxhome.com/file/2023/0/48340_0s.png)
Win10找不到便签(便利贴)怎么办 两种方法让Win10找回便签功能
![](https://img.aspxhome.com/file/2023/28/a243463_0s.jpg)
word文档中排列混乱的文本框如何进行对齐、均匀排布?
![](https://img.aspxhome.com/file/2023/6/35116_0s.png)
Win10专业版搜索不到打印机怎么办?
![](https://img.aspxhome.com/file/2023/26/a223206_0s.png)
Word 2003文档中自动生成章节号的方法技巧
![](https://img.aspxhome.com/file/2023/2/29702_0s.jpg)
Word打不开如何修复?
![](https://img.aspxhome.com/file/2023/1/31341_0s.jpg)
iCloud中的照片如何导出到个人电脑中进行储存?
![](https://img.aspxhome.com/file/2023/0/a199780_0s.jpg)
Word中人民币符号"¥"的图文输入方法
![](https://img.aspxhome.com/file/2023/0/21520_0s.jpg)
iOS 16 实用功能:支持查看 Wi-Fi 网络密码及复制分享给好友
![](https://img.aspxhome.com/file/2023/2/45122_0s.png)
Win10专业版没有应用商店怎么办?如何重装win10商店?
![](https://img.aspxhome.com/file/2023/26/a223578_0s.png)
excel 如何监视单元格的值及其值的变化
![](https://img.aspxhome.com/file/2023/2/a161962_0s.png)
wps如何添加或删除评论
![](https://img.aspxhome.com/file/2023/6/a170296_0s.jpg)
word数字签名有什么用?word数字签名保护文档方法步骤
![](https://img.aspxhome.com/file/2023/7/29247_0s.jpg)
WPS文字撤销和恢复的使用技巧
![](https://img.aspxhome.com/file/2023/3/a164073_0s.png)
利用Excel 2010的突出显示单元格规则使数据分析更具表现力
![](https://img.aspxhome.com/file/2023/6/a156776_0s.jpg)
Win10应用商店打不开错误代码0x80072f78如何解决?
![](https://img.aspxhome.com/file/2023/0/52960_0s.jpg)
如何在Word 2007中使用字符格式?
![](https://img.aspxhome.com/file/2023/9/23249_0s.jpg)
Win7笔记本突然没声音了怎么办?Win7右下角小喇叭不见了怎么?
![](https://img.aspxhome.com/file/2023/28/a250556_0s.png)
wps office批注怎么改?
![](https://img.aspxhome.com/file/2023/6/a168106_0s.png)