使用Win8在找開系統(tǒng)文件夾是經(jīng)常提示:無法訪問……,拒絕訪問。就是沒有超級(jí)管理員權(quán)限所致,取得Win8超級(jí)管理員權(quán)限很容易,導(dǎo)入一個(gè)注冊表文件就可以實(shí)現(xiàn),并且操作簡單。
不管是使用Win8還是Win7,在打開C盤的一些文件夾時(shí),經(jīng)常會(huì)遇到無法訪問的情況,以致于想刪除已經(jīng)確認(rèn)沒有用的文件時(shí)刪除不了。Win7下很好辦,各種工具皆可實(shí)現(xiàn)在右鍵菜單添加取得管理員權(quán)限按鈕?,F(xiàn)在主要介紹Win8下如何為鼠標(biāo)右鍵菜單添加取得管理員權(quán)限選項(xiàng)。
新建一個(gè)記事本將下面的代碼Copy進(jìn)去保存,記事本名字無所謂,記住將擴(kuò)展名改為.reg就行了。
建好之后,雙擊這個(gè)reg文件(注冊表文件)導(dǎo)入注冊表,導(dǎo)入前會(huì)有提示讓你選擇,點(diǎn)是就行了。
導(dǎo)入進(jìn)去之后,右擊你要取得權(quán)限的文件夾,鼠標(biāo)右鍵菜單中選擇選擇管理員權(quán)限就行了。
為了安全考慮,對(duì)一個(gè)文件操作完成之后,應(yīng)當(dāng)恢復(fù)成默認(rèn)權(quán)限,此時(shí)在右鍵菜單中選擇恢復(fù)原始權(quán)限就行了。
取得管理員權(quán)限:
Windows Registry Editor Version 5.00
;取得文件修改權(quán)限
[HKEY_CLASSES_ROOT*shellrunas]
@="管理員權(quán)限"
"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]
@="管理員權(quán)限"
"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]
@="管理員權(quán)限"
"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"
恢復(fù)到原始權(quán)限:
Windows Registry Editor Version 5.00
;恢復(fù)原始權(quán)限
[HKEY_CLASSES_ROOT*shellrunas-]
@="恢復(fù)原始權(quán)限"
"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-]
@="恢復(fù)原始權(quán)限"
"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-]
@="恢復(fù)原始權(quán)限"
"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%%""
如何刪除增加的兩個(gè)右鍵菜單,還請(qǐng)大神做個(gè)小工具上傳,省得一個(gè)一個(gè)的去注冊表刪除。