You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get-PSSession -State Opened -ComputerName localhost Returns Nothing #9161
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
True
Environment data
$Host
Name : ConsoleHost
Version : 6.1.0-preview.2
Activity
iSazonov commentedon Mar 19, 2019
Aditya Patwardhan (@adityapatwardhan) Is the same root cause as in #9160?
adityapatwardhan commentedon Mar 19, 2019
Yuriy Samorodov (@YuriySamorodov) Can you try a repro on the latest
6.2.0-rc.1release?YuriySamorodov commentedon Mar 19, 2019
Aditya Patwardhan (@adityapatwardhan) Same in 6.2.0-rc.1
iSazonov commentedon Jan 30, 2020
/cc Paul Higinbotham (@PaulHigin) Could you please comment the issue?