最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

win11右鍵菜單增加“獲取管理員權(quán)限”和“恢復(fù)管理員”權(quán)限的方法

2023-04-03 18:54 作者:strikewelkin  | 我要投稿

1. 獲取管理員權(quán)限

新建一個文件,文件名改為“獲取管理員權(quán)限.reg”,以文本方式打開,輸入以下命令:


Windows Registry Editor Version 5.00


;取得文件修改權(quán)限??


[HKEY_CLASSES_ROOT\*\shell\runas]??


@="獲取管理員權(quán)限"


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


@="獲取管理員權(quán)限"


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


@="獲取管理員權(quán)限"


"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. 恢復(fù)管理員權(quán)限

新建一個文件,文件名改為“恢復(fù)管理員權(quán)限.reg”,以文本方式打開,輸入以下命令:


Windows Registry Editor Version 5.00


;恢復(fù)原始權(quán)限??


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


@="恢復(fù)原始權(quán)限"


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


@="恢復(fù)原始權(quán)限"


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


@="恢復(fù)原始權(quán)限"


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


保存后,打開運行即可。


3. 可能遇到的問題

執(zhí)行以上的2個reg文件后,有可能會出現(xiàn)亂碼的現(xiàn)象,那就需要按照文檔中的說明,打開注冊表,修改相應(yīng)的鍵值。直接輸入“獲取管理員權(quán)限”或者“恢復(fù)管理員權(quán)限”,確定即可。

win11右鍵菜單增加“獲取管理員權(quán)限”和“恢復(fù)管理員”權(quán)限的方法的評論 (共 條)

分享到微博請遵守國家法律
凤台县| 富民县| 灵台县| 南溪县| 临安市| 化州市| 舟曲县| 鹿泉市| 开化县| 阳谷县| 涪陵区| 蒲江县| 稻城县| 类乌齐县| 宜兰县| 禄劝| 社会| 棋牌| 和静县| 斗六市| 密云县| 阿荣旗| 海淀区| 壶关县| 大名县| 交城县| 正宁县| 台南市| 海原县| 红原县| 长宁县| 道孚县| 金堂县| 永新县| 双城市| 沙湾县| 东源县| 宁安市| 旬阳县| 吉安县| 宝山区|