I'm trying to get consistent look&feel of cmd.exe and powershell.exe in Windows 10.
Where a Console's settings are loaded-from and/or persisted-to is decided upon based upon the following hierarchy:
- Hardcoded settings in conhostv2.dll
- User's configured Console defaults, stored as values in 'HKCU\Console'
- Per-Console-application registry settings, stored as sub-keys of 'HKCU\Console\' using one of two sub-key names:
- Console application path (replacing '\' with '_')
- Console title
- Windows shortcut (.lnk) files
I have modified the registry in:
to set colors, size and font of cmd.exe
to have a different background color in powershell.exe but the font and window size is inherited from cmd.exe.
This works great for cmd.exe started in any way and for PS started from Explorer > File > Open Windows PowerShell
However, I have problem changing links from Start Menu > Windows PowerShell
These .lnk files have colors set and don't use registry settings.
I tried recreating the link and set its path to
%SystemRoot%\SysWOW64\WindowsPowerShell\v1.0\powershell.exe, it works but uses setting from the registry for Command Prompt and not settings for PowerShell.
Is it possible to remove console setting from .lnk file?