《Windows 系列》- 右击添加管理员权限
生活随笔
收集整理的這篇文章主要介紹了
《Windows 系列》- 右击添加管理员权限
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
將以下文本拷貝到txt中,并改后綴為bat
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\runas]@=“管理員取得所有權”“NoWorkingDirectory”=“”@=“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]@=“管理員取得所有權”“NoWorkingDirectory”=“”@=“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]@=“管理員取得所有權”“NoWorkingDirectory”=“”@=“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” ;?
轉載于:https://my.oschina.net/kimisme/blog/1607105
總結
以上是生活随笔為你收集整理的《Windows 系列》- 右击添加管理员权限的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OSChina 周一乱弹 —— 深入浅出
- 下一篇: CentOS文件权限管理