Title: Get-PSSession with -ComputerName or with -connectionUri does not work · Issue #6321 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-PSSession with -ComputerName or with -connectionUri does not work · Issue #6321 · PowerShell/PowerShell
X Title: Get-PSSession with -ComputerName or with -connectionUri does not work · Issue #6321 · PowerShell/PowerShell
Description: Steps to reproduce 1. launch pwsh 2. execute command: Get-PSSession -ComputerName "localhost" Expected behavior as descibed here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-pssession?view=powershell-...
Open Graph Description: Steps to reproduce 1. launch pwsh 2. execute command: Get-PSSession -ComputerName "localhost" Expected behavior as descibed here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powers...
X Description: Steps to reproduce 1. launch pwsh 2. execute command: Get-PSSession -ComputerName "localhost" Expected behavior as descibed here: https://docs.microsoft.com/en-us/powershell/module/micros...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6321
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-PSSession with -ComputerName or with -connectionUri does not work","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\n- Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md).\r\n- Fill out the following repro template:\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n--\u003e\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n1. launch pwsh\r\n2. execute command: Get-PSSession -ComputerName \"localhost\"\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nas descibed here: \r\nhttps://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-pssession?view=powershell-6\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nGet-PSSession : The term 'New-WSManSessionOption' is not recognized as the name of a cmdlet, function, script file, or operable program.\r\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:1 char:1\r\n+ Get-PSSession -ComputerName \"localhost\"\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo : ObjectNotFound: (New-WSManSessionOption:String) [Get-PSSession], CommandNotFoundException\r\n+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetPSSessionCommand\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.1\r\nPSEdition Core\r\nGitCommitId v6.0.1\r\nOS Linux 3.13.0-141-generic #190-Ubuntu SMP Fri Jan 19 12:52:38 UTC 2018\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n```\r\n","author":{"url":"https://github.com/sh0375","@type":"Person","name":"sh0375"},"datePublished":"2018-03-06T07:02:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/6321/PowerShell/issues/6321"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a20ad9b5-e979-393b-8761-49b2b540b0d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95F6:663BE:8B0505:B825EE:6A56DAAC |
| html-safe-nonce | 857dabd69ea16c723155fc1fe46283941b3e82233000102a97214eb8710e8c2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUY2OjY2M0JFOjhCMDUwNTpCODI1RUU6NkE1NkRBQUMiLCJ2aXNpdG9yX2lkIjoiMjkxNzY3NjQ1MjUyNjA4NjgyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca62ab22572adaf042d896624746a1f5e0ac319bf5ab94eda41366d96af7c85b |
| hovercard-subject-tag | issue:302586108 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/6321/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4414c4add543f6c7c925c40b671215017bb668bcb46743db6e10a59db158c6d5/PowerShell/PowerShell/issues/6321 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4414c4add543f6c7c925c40b671215017bb668bcb46743db6e10a59db158c6d5/PowerShell/PowerShell/issues/6321 |
| og:image:alt | Steps to reproduce 1. launch pwsh 2. execute command: Get-PSSession -ComputerName "localhost" Expected behavior as descibed here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powers... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sh0375 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5220a278731283038daf0ed00b41f06ef7ff9539020ecc806c5c5a0fb6bda25a |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8684ae1a81cd3e4ef219b241179982bbda1a5b1f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width