文章来源:网络作者:栗子发布时间:2026-05-22 16:22:56
Win10系统可以通过SHIFT+右键的方式呼出右键菜单中的Powershell控制台选项,但是对于经常需要操作的用户来说不免有些麻烦,下面小编分享的方法是不需要按Shift右键就可以的,下面一起来看看。
; 若原先有,先删除原来的[-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere][-HKEY_CLASSES_ROOT\Directory\Background\shell\runas][-HKEY_CLASSES_ROOT\Directory\Background\shell\PowershellAdmin] ;1.右键:命令行[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]@="在此处打开命令行窗口" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]@="cmd.exe -noexit -command Set-Location -literalPath \"%V\"" ;2.右键:命令行(管理员)[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]@="在此处打开命令行窗口(管理员)""ShowBasedOnVelocityId"=dword:00639bc8 [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]@="cmd.exe /s /k pushd \"%V\"" ;3.shift+右键:Powershell(管理员)[HKEY_CLASSES_ROOT\Directory\Background\shell\PowershellAdmin]@="在此处打开 Powershell 窗口(管理员)""Extended"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\PowershellAdmin\command]@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"
;4.设置右键 管理员打开cmd的另一种方法(可用来替换上面的2) 通过Powershell调起,会闪过一次Powershell的窗口,去掉下面几行的[; ]可以取消注释[-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAdmin][HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAdmin] @="在此处打开命令行窗口(管理员)"[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAdmin\command]@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

梦想三国之勇往直前0.1折

炼仙传说0.1折
仙侠01折
充值享永久0.1折福利,登录每日领2000免费代金券;;

不可思议的刀剑与魔法0.1折
卡牌01折
进游立送真充卡,开局自带“钞能力”

逍遥浪人
卡牌
1折送绝版皮肤 全场充值永久1折,创角即送“黑神话”孙悟空绝版皮肤。

奇幻梦旅人
休闲
当个无忧无虑的旅人,尽情享受这个童话世界吧!

玄影0.1折
仙侠01折
全场充值永享0.1折!

点击冒险之旅(0.1折特级行...
卡牌01折
上线福利:登录即送创角大礼包,召唤顶级战力!

天神赵子龙0.1折
卡牌01折
全新0.1折放置卡牌,打破传统三国叙事,解锁新颖剧情,每日送1000代金;

九州异兽记0.1折
开箱01折
1分钱买SSR异兽

龙魂魔法0.1折
185传奇996传奇
上线即送:自动拾取、自动回收、切割+222、老男孩·称号!

魔药杂货铺什么时候出 公测上线时...