Title: On Windows, can't create custom pssessionconfiguration against 6.0 endpoint · Issue #4275 · PowerShell/PowerShell · GitHub
Open Graph Title: On Windows, can't create custom pssessionconfiguration against 6.0 endpoint · Issue #4275 · PowerShell/PowerShell
X Title: On Windows, can't create custom pssessionconfiguration against 6.0 endpoint · Issue #4275 · PowerShell/PowerShell
Description: Register-PSSessionConfiguration creates a new configuration but uses the microsoft.powershell endpoint which defaults to Windows PowerShell 5.1. Steps to reproduce PS> New-PSSessionConfigurationFile -Path .\restricted.pssc -SessionType R...
Open Graph Description: Register-PSSessionConfiguration creates a new configuration but uses the microsoft.powershell endpoint which defaults to Windows PowerShell 5.1. Steps to reproduce PS> New-PSSessionConfigurationFil...
X Description: Register-PSSessionConfiguration creates a new configuration but uses the microsoft.powershell endpoint which defaults to Windows PowerShell 5.1. Steps to reproduce PS> New-PSSessionConfiguration...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On Windows, can't create custom pssessionconfiguration against 6.0 endpoint","articleBody":"\u003c!--\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](../docs/FAQ.md).\r\n- Refer to the [known issues](../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\n`Register-PSSessionConfiguration` creates a new configuration but uses the microsoft.powershell endpoint which defaults to Windows PowerShell 5.1.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nPS\u003e New-PSSessionConfigurationFile -Path .\\restricted.pssc -SessionType RestrictedRemoteServer -FunctionDefinitions @{Name=\"psversion\";ScriptBlock={$psversiontable}}\r\nPS\u003e Register-PSSessionConfiguration -Path .\\restricted.pssc -Name restricted\r\n\r\nType Keys Name\r\n---- ---- ----\r\nContainer {Name=restricted} restricted\r\n\r\nPS\u003e Restart-Service winrm\r\nPS\u003e Enter-PSSession -ComputerName . -ConfigurationName restricted\r\n[localhost]: PS\u003epsversion\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.4\r\nOS Microsoft Windows 10.0.16245\r\nPlatform Win32NT\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\nActual behavior\r\n---------------\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 5.1.16245.1000\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.16245.1000\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\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\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.4\r\nOS Microsoft Windows 10.0.16245\r\nPlatform Win32NT\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","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-07-17T22:29:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4275/PowerShell/issues/4275"}
| 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:90c29a0b-f873-31cf-0552-9940253f5c6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8CA:CB088:229422E:31F0F9F:6A57AD3A |
| html-safe-nonce | 365ab67db01bc1e0e502977ed3bcc8cce21f5aa02eb9e47c3116e33d39a9ee7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOENBOkNCMDg4OjIyOTQyMkU6MzFGMEY5Rjo2QTU3QUQzQSIsInZpc2l0b3JfaWQiOiI0NTQ3NTg4OTU3OTU1NDc0NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b1b368ad5a3b2cf58bd7a161c97c9face458b3982003e771db10a2fab9aeeaec |
| hovercard-subject-tag | issue:243546787 |
| 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/4275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12093cb8a9a0c3d993f45a2e11c334406a404d9e241ed85df3d5353fc7ccee52/PowerShell/PowerShell/issues/4275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12093cb8a9a0c3d993f45a2e11c334406a404d9e241ed85df3d5353fc7ccee52/PowerShell/PowerShell/issues/4275 |
| og:image:alt | Register-PSSessionConfiguration creates a new configuration but uses the microsoft.powershell endpoint which defaults to Windows PowerShell 5.1. Steps to reproduce PS> New-PSSessionConfigurationFil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 017a07c29bdd8a37b5907fc9a689338deb7103b5af7f56714193b2700229b3df |
| 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 | 4cd16a676f89d1cedb932671a5c2d20b8e60f86a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width