Skip to content

Commit 1ff410d

Browse files
change to MachineName
1 parent 764db94 commit 1ff410d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Session/SessionDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static PSCommand GetDetailsCommand()
5656
{
5757
PSCommand infoCommand = new PSCommand();
5858
infoCommand.AddScript(
59-
"@{ 'computerName' = if ($ExecutionContext.Host.Runspace.ConnectionInfo) {$ExecutionContext.Host.Runspace.ConnectionInfo.ComputerName} else {'localhost'}; 'processId' = $PID; 'instanceId' = $host.InstanceId }");
59+
"@{ 'computerName' = if ([Environment]::MachineName) {[Environment]::MachineName} else {'localhost'}; 'processId' = $PID; 'instanceId' = $host.InstanceId }");
6060

6161
return infoCommand;
6262
}

0 commit comments

Comments
 (0)