From 7ba3b50d4a1bbaad2c2f1047df625bcf8e712edc Mon Sep 17 00:00:00 2001 From: jeffbi Date: Wed, 8 Feb 2017 08:40:56 -0800 Subject: [PATCH] Fix #3080 (#3107) Pass null rather than "localhost" to CimSession.Create --- .../commands/management/GetComputerInfoCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs index be64ab7f2..ce199791c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs @@ -79,7 +79,7 @@ namespace Microsoft.PowerShell.Commands #region Static Data and Constants private const string activity = "Get-ComputerInfo"; - private const string localMachineName = "localhost"; + private const string localMachineName = null; #endregion Static Data and Constants #region Instance Data