无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(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)限的方法的評論 (共 條)

分享到微博請遵守國家法律
鲁甸县| 中西区| 阜城县| 哈巴河县| 从化市| 杭锦旗| 宜宾市| 鄂托克前旗| 台中县| 双鸭山市| 自贡市| 家居| 定襄县| 枣庄市| 元谋县| 霍林郭勒市| 红河县| 中西区| 民权县| 巫溪县| 张北县| 忻州市| 桐庐县| 砀山县| 瑞昌市| 永城市| 和平县| 澄迈县| 宜宾县| 板桥市| 新平| 交口县| 清水河县| 铁岭县| 寿阳县| 安泽县| 新竹市| 措勤县| 防城港市| 亚东县| 潮州市|