From 842058b23a5efd0d73c090cc68901aa7ccc05e30 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Wed, 14 Dec 2022 16:17:42 -0800 Subject: [PATCH 1/2] Hide the console for WinRM remoting (#86) --- .../nativemsh/pwrshplugin/pwrshclrhost.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); } From 8fb8207295b7666747ee09cec18d3902b0eec420 Mon Sep 17 00:00:00 2001 From: Jose Sua Date: Wed, 4 Jan 2023 14:31:59 -0800 Subject: [PATCH 2/2] Moving amsistate event changed to this repo (#87) --- .../PowerShell.Core.Instrumentation.man | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man b/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man index b1c239b..d879924 100644 --- a/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man +++ b/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man @@ -2184,6 +2184,18 @@ value="0x6017" version="1" /> +