【資料圖】
1、Windows 7的權(quán)限問(wèn)題一直困擾著很多人,當(dāng)你需要執(zhí)行,讀取和寫(xiě)入文件或程序的時(shí)候,系統(tǒng)總會(huì)跳出沒(méi)有足夠權(quán)限的提示,盡管此時(shí)你已經(jīng)是管理員身份。
2、此時(shí)往往需要手動(dòng)更改權(quán)限,每次反復(fù)令人生厭。
3、現(xiàn)提供以切實(shí)有效地解決方法。
4、 復(fù)制下面代碼,保存至記事本里,另存為*.reg,雙擊導(dǎo)入注冊(cè)表即可。
5、 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*shellunas] @="取得管理員權(quán)限" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT*shellunascommand] @="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_ROOTexefileshellunas2] @="取得管理員權(quán)限" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOTexefileshellunas2command] @="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_ROOTDirectoryshellunas] @="取得管理員權(quán)限" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOTDirectoryshellunascommand] @="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" 完成之后,當(dāng)再次遇到需要權(quán)限的內(nèi)容時(shí),右擊此文件,你會(huì)發(fā)現(xiàn)菜單里多出“取得管理員權(quán)限”一欄,此時(shí)點(diǎn)擊,待寫(xiě)入完成,就可以進(jìn)入或執(zhí)行。
本文到此分享完畢,希望對(duì)大家有所幫助。
最近更新