我无法让PowerShell从ConEmu控制台启动。
尝试从powershell.exe -NoProfile开始(从cmd.exe工作)。当我把它作为一项任务开始时,我得到:
ConEmuC:根进程存活不到10秒,ExitCode=0。 按Enter或Esc关闭控制台..。
即使我在cmd.exe中启动ConEmu控制台并执行powershell.exe -NoProfile,也不会发生任何事情。和cmd.exe /k powershell.exe -NoProfile一起尝试过。无法获得PowerShell控制台。有什么提示来调试这种奇怪的行为吗?
发布于 2018-07-09 20:22:41
我也遇到了同样的问题,你也是这样做的,我甚至在升级到新版本的康奈尔180617之后也搞不清楚它。我也没有我的工作计算机的管理权限,我真的想要我的CONEMU设置回Powershell。我终于让它起作用了,我希望这也能帮到你。我现在可以在我的Windows 10机器上运行Powershell了!
创建一个新任务,然后使用以下语法:
powershell.exe -cur_console:c1:f:i:n
来自ConEmu文档
- f - force starting console active, useful when starting several consoles simultaneously
- i - don't inject ConEmuHk into starting process
- n - disable ‘Press Enter or Esc to close console’
https://stackoverflow.com/questions/50405512
复制相似问题