diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp b/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp index d2e56e5..69068f3 100644 --- a/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp +++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp @@ -39,6 +39,13 @@ unsigned int PowerShellCoreClrWorker::LaunchClr( { // Allocate a console so that the codepage is setup correctly AllocConsole(); + HWND console = GetConsoleWindow(); + if (console != NULL) + { + // Hide the console window + ShowWindow(console, SW_HIDE); + } + return commonLib->LaunchCoreCLR(hostWrapper, hostEnvironment, friendlyName); }