I have enabled and installed the Windows subsystem for Linux through Turn Windows features on or off in Control Panel, and get the Bash Unix shell supported in Windows 10 Anniversary Update on my Surface Pro 4. HOwever, when I opened command prompt and tried to run Bash on Ubuntu, it outputed the error “Unsupported console settings. In order to use this feature the legacy console must be disabled.”. If I ran the Bash Start menu shortcut, it flickered and disappears quickly.
The problem is caused by the legacy mode and you need to disable it completely. Once the Use Legacy Console for Command Prompt is enabled, you are able to have new features, such as add transparency, use line wrapping selection, standard copy and paste keyboard shortcuts (Ctrl + C and Ctrl + V).
How to fix Linux bash shell not start Unsupported console settings in Windows 10 Anniversary Update
* From your desktop, right click on the Start menu, and select Command Prompt (Admin).
Or you can clcik Start menu, type CMD into search box, right click on the Command Prompt, and select Run as administrator.
* With Command Prompt window, hold-and-press or right-click on the title bar, and choose Properties.
* Go to the Options tab, uncheck the “Use legacy console (requires relaunch)” box, and click Apply > OK button.
* If you have an existing shortcut of cmd.exe, right click on it to open the Properties and follow the above way to turn off Use legacy console.
If you need to make the same changes for multiple Windows 10 systems, the best choice is to use a script or batch file. First create a new disablelegacy.bat, copy the code:
REG.EXE ADD HKCU\Console /v ForceV2 /t REG_DWORD /d 1 /f
paste them into the bat file and save it to run. Then launching Bash should be correct.