We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764db94 commit 1ff410dCopy full SHA for 1ff410d
src/PowerShellEditorServices/Session/SessionDetails.cs
@@ -56,7 +56,7 @@ public static PSCommand GetDetailsCommand()
56
{
57
PSCommand infoCommand = new PSCommand();
58
infoCommand.AddScript(
59
- "@{ 'computerName' = if ($ExecutionContext.Host.Runspace.ConnectionInfo) {$ExecutionContext.Host.Runspace.ConnectionInfo.ComputerName} else {'localhost'}; 'processId' = $PID; 'instanceId' = $host.InstanceId }");
+ "@{ 'computerName' = if ([Environment]::MachineName) {[Environment]::MachineName} else {'localhost'}; 'processId' = $PID; 'instanceId' = $host.InstanceId }");
60
61
return infoCommand;
62
}
0 commit comments