1、新建txt文本
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"c:\\windows\\system32\\cmd.exe"="RUNASADMIN"
2、粘贴上面内容
3、修改后缀名为**.reg**
4.、运行写入注册表
本文介绍了一种通过修改注册表使Windows系统下CMD默认以管理员权限运行的方法。具体步骤包括:创建一个.txt文件,将特定的注册表编辑内容粘贴进去,然后将文件后缀名改为.reg,最后运行该文件以更新注册表。
1、新建txt文本
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"c:\\windows\\system32\\cmd.exe"="RUNASADMIN"
2、粘贴上面内容
3、修改后缀名为**.reg**
4.、运行写入注册表
3410

被折叠的 条评论
为什么被折叠?