-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Description
Get-PSSession -State Opened -Computername localhost returns nothing despite there is an opened session:
Environment:
Name : ConsoleHost
Version : 6.1.0-preview.2
Steps to reproduce
$session = New-PSSession -ConnectionUri https://exchange.domain.local/powershell -AllowRedirection:$true -SessionOption $PSSessionOption -Authentication NegotiateWithImplicitCredential -ConfigurationName Microsoft.Exchange ;
Get-PSSession ;
Get-PSSession -State Opened -ComputerName localhost ;
Get-PSSession -State Opened -ComputerName 127.0.0.1 ;Expected behavior
PS C:\Program Files\PowerShell\6-preview> Get-PSSession
Id Name Transport ComputerName ComputerType State ConfigurationName Availability
-- ---- --------- ------------ ------------ ----- ----------------- ------------
2 Runspace2 WSMan exchange.dom... RemoteMachine Opened Microsoft.Exchange Available
Actual behavior
( Get-PSSession -State Opened -ComputerName localhost ) -eq $null
True
( Get-PSSession -State Opened -ComputerName 127.0.0.1 ) -eq $null
TrueEnvironment data
$Host
Name : ConsoleHost
Version : 6.1.0-preview.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
