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 with -ComputerName or with -connectionUri does not work #6321
as descibed here:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-pssession?view=powershell-6
Actual behavior
Get-PSSession : The term 'New-WSManSessionOption' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-PSSession -ComputerName "localhost"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-WSManSessionOption:String) [Get-PSSession], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetPSSessionCommand
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1
OS Linux 3.13.0-141-generic #190-Ubuntu SMP Fri Jan 19 12:52:38 UTC 2018
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
@WG-Remoting
Remoting working group: This is a bug and Get-PSSession command needs to be updated to work correctly on non-Windows platforms. Even though WinRM/OMI is no longer available, SSH remoting still works on non-Windows platforms, and the new custom remoting connection support (#16923) now allows third-party modules that create PSSession objects, which should be discoverable through the Get-PSSession command.
Activity
ThomasNieto commentedon Aug 7, 2020
Is this still an issue?
neatchee commentedon Mar 9, 2021
Thomas Nieto (@ThomasNieto) I can confirm that this is still an issue.
danielbrowne commentedon May 18, 2021
Also experiencing this issue.
srmo commentedon Sep 30, 2021
Same here
uc-cjdavis commentedon Mar 23, 2022
Still an issue
PaulHigin commentedon Apr 7, 2022
@WG-Remoting
Remoting working group: This is a bug and
Get-PSSessioncommand needs to be updated to work correctly on non-Windows platforms. Even though WinRM/OMI is no longer available, SSH remoting still works on non-Windows platforms, and the new custom remoting connection support (#16923) now allows third-party modules that createPSSessionobjects, which should be discoverable through theGet-PSSessioncommand.andreyfabrikant commentedon Feb 20, 2024
Still a bug