Title: Get-PSSession -State Opened -ComputerName localhost Returns Nothing · Issue #9161 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-PSSession -State Opened -ComputerName localhost Returns Nothing · Issue #9161 · PowerShell/PowerShell
X Title: Get-PSSession -State Opened -ComputerName localhost Returns Nothing · Issue #9161 · PowerShell/PowerShell
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...
Open Graph 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-P...
X 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-P...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9161
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-PSSession -State Opened -ComputerName localhost Returns Nothing","articleBody":"Get-PSSession -State Opened -Computername localhost returns nothing despite there is an opened session:\r\n\r\n\r\n\r\nEnvironment:\r\n```\r\nName : ConsoleHost\r\nVersion : 6.1.0-preview.2\r\n```\r\n\r\n\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](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://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$session = New-PSSession -ConnectionUri https://exchange.domain.local/powershell -AllowRedirection:$true -SessionOption $PSSessionOption -Authentication NegotiateWithImplicitCredential -ConfigurationName Microsoft.Exchange ;\r\nGet-PSSession ;\r\nGet-PSSession -State Opened -ComputerName localhost ;\r\nGet-PSSession -State Opened -ComputerName 127.0.0.1 ;\r\n```\r\n\r\n# Expected behavior\r\n\r\n```powershell\r\nPS C:\\Program Files\\PowerShell\\6-preview> Get-PSSession\r\n\r\n Id Name Transport ComputerName ComputerType State ConfigurationName Availability\r\n -- ---- --------- ------------ ------------ ----- ----------------- ------------\r\n 2 Runspace2 WSMan exchange.dom... RemoteMachine Opened Microsoft.Exchange Available\r\n\r\n```\r\n\r\n# Actual behavior\r\n\r\n```powershell\r\n( Get-PSSession -State Opened -ComputerName localhost ) -eq $null\r\nTrue\r\n( Get-PSSession -State Opened -ComputerName 127.0.0.1 ) -eq $null\r\nTrue\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n$Host\r\nName : ConsoleHost\r\nVersion : 6.1.0-preview.2\r\n\r\n```\r\n","author":{"url":"https://github.com/YuriySamorodov","@type":"Person","name":"YuriySamorodov"},"datePublished":"2019-03-18T19:04:28Z","url":"https://github.com/PowerShell/PowerShell/issues/9161"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:264e1b95-34c1-c267-3e93-9c91ec89bb19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEC2:190070:4FDEE8:737452:6AFD722A |
| html-safe-nonce | 23f465c97c831cbefecd301fbfe43de1b887699f44a29ff7642f3fb8eb123781 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUMyOjE5MDA3MDo0RkRFRTg6NzM3NDUyOjZBRkQ3MjJBIiwidmlzaXRvcl9pZCI6IjE2Njc5NDE1ODc1OTk4NDc5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 867e5641b54b192e9acbcca72c62897c3a5636b11f381742295aef12c444ae62 |
| hovercard-subject-tag | issue:422385410 |
| 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/9161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cde43cb06210de40a771c570b71d2547bb88c02fde5722abdff737c5a4206b9/PowerShell/PowerShell/issues/9161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cde43cb06210de40a771c570b71d2547bb88c02fde5722abdff737c5a4206b9/PowerShell/PowerShell/issues/9161 |
| og:image:alt | 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-P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | YuriySamorodov |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| 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 | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width