国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Windows > 正文

win8超級管理員權限獲取(通過注冊表文件實現)

2019-11-28 03:40:49
字體:
來源:轉載
供稿:網友

使用Win8在找開系統文件夾是經常提示:無法訪問……,拒絕訪問。就是沒有超級管理員權限所致,取得Win8超級管理員權限很容易,導入一個注冊表文件就可以實現,并且操作簡單。
不管是使用Win8還是Win7,在打開C盤的一些文件夾時,經常會遇到無法訪問的情況,以致于想刪除已經確認沒有用的文件時刪除不了。Win7下很好辦,各種工具皆可實現在右鍵菜單添加取得管理員權限按鈕。現在主要介紹Win8下如何為鼠標右鍵菜單添加取得管理員權限選項。

新建一個記事本將下面的代碼Copy進去保存,記事本名字無所謂,記住將擴展名改為.reg就行了。
建好之后,雙擊這個reg文件(注冊表文件)導入注冊表,導入前會有提示讓你選擇,點是就行了。
導入進去之后,右擊你要取得權限的文件夾,鼠標右鍵菜單中選擇選擇管理員權限就行了。

為了安全考慮,對一個文件操作完成之后,應當恢復成默認權限,此時在右鍵菜單中選擇恢復原始權限就行了。
取得管理員權限:
Windows Registry Editor Version 5.00
;取得文件修改權限
[HKEY_CLASSES_ROOT*shellrunas]
@="管理員權限"
"Icon"="C:WindowsSystem32imageres.dll,102"
"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_ROOTexefileshellrunas2]
@="管理員權限"
"Icon"="C:WindowsSystem32imageres.dll,102"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellrunas2command]
@="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]
@="管理員權限"
"Icon"="C:WindowsSystem32imageres.dll,102"
"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"

恢復到原始權限:
Windows Registry Editor Version 5.00
;恢復原始權限
[HKEY_CLASSES_ROOT*shellrunas-]
@="恢復原始權限"
"Icon"="C:WindowsSystem32imageres.dll,101"
"NoWorkingDirectory"=""
; && takeown /f "%1"
[HKEY_CLASSES_ROOT*shellrunas-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_ROOTexefileshellrunas2-]
@="恢復原始權限"
"Icon"="C:WindowsSystem32imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellrunas2-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_ROOTDirectoryshellrunas-]
@="恢復原始權限"
"Icon"="C:WindowsSystem32imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellrunas-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%%""
如何刪除增加的兩個右鍵菜單,還請大神做個小工具上傳,省得一個一個的去注冊表刪除。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 日喀则市| 江安县| 荔浦县| 格尔木市| 右玉县| 金溪县| 鲁山县| 尉犁县| 巴彦淖尔市| 华容县| 高淳县| 西平县| 汕头市| 开封市| 盘锦市| 新河县| 瑞丽市| 旬邑县| 改则县| 进贤县| 大名县| 合作市| 淮安市| 郑州市| 玛曲县| 色达县| 卢龙县| 甘南县| 青浦区| 富源县| 吉安县| 平舆县| 平原县| 铜鼓县| 商都县| 纳雍县| 繁峙县| 自治县| 廊坊市| 桓仁| 辽宁省|