How can I launch powershell.exe with the “default” colours from the PowerShell shortcut?

前端 未结 9 1344
野趣味
野趣味 2020-12-13 06:56

I\'m attached to the nice blue colour of the PowerShell window when you launch it from one of the pre-installed shortcuts. However, if you manually launch powershell.exe, yo

9条回答
  •  执念已碎
    2020-12-13 07:32

    The correct way to do this is with the Registry

    cd hkcu:/console
    $0 = '%systemroot%_system32_windowspowershell_v1.0_powershell.exe'
    ni $0 -f
    sp $0 ColorTable00 0x00562401
    sp $0 ColorTable07 0x00f0edee
    

提交回复
热议问题