Title: Default User Agent Reports WindowsPowerShell · Issue #4911 · PowerShell/PowerShell · GitHub
Open Graph Title: Default User Agent Reports WindowsPowerShell · Issue #4911 · PowerShell/PowerShell
X Title: Default User Agent Reports WindowsPowerShell · Issue #4911 · PowerShell/PowerShell
Description: PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs Line 116 in 1c921cd "WindowsPowerShell/{0}", PSVersionInfo.PSVersion); This should be just PowerShell and not WindowsPowerShell. Steps to repr...
Open Graph Description: PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs Line 116 in 1c921cd "WindowsPowerShell/{0}", PSVersionInfo.PSVersion); This should be just PowerShell ...
X Description: PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs Line 116 in 1c921cd "WindowsPowerShell/{0}", PSVersionInfo.PSVersion); This should be just P...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4911
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default User Agent Reports WindowsPowerShell","articleBody":"https://github.com/PowerShell/PowerShell/blob/1c921cdf85e83c431a4888813302b0c241e384ce/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs#L116\r\n\r\nThis should be just `PowerShell` and not `WindowsPowerShell`.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n$bingdings = [System.Reflection.BindingFlags]::NonPublic -bxor [System.Reflection.BindingFlags]::Static\r\n[Microsoft.PowerShell.Commands.PSUserAgent].GetProperty('App',$bingdings).GetValue($null,$null)\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nPowerShell/6.0.0\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nWindowsPowerShell/6.0.0\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\r\n```powershell\r\n\u003e $PSVersionTable\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.7\r\nOS Microsoft Windows 10.0.15063\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\nand\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.7\r\nOS Linux 4.4.0-96-generic #119-Ubuntu SMP Tue Se...\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\r\n## Note on changing this\r\nThere are several tests, like the one below, which will also need to be updated.\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/1c921cdf85e83c431a4888813302b0c241e384ce/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1#L466","author":{"url":"https://github.com/markekraus","@type":"Person","name":"markekraus"},"datePublished":"2017-09-24T20:28:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4911/PowerShell/issues/4911"}
| 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:ebdf3617-14e6-8fcd-8b53-f11bab36d6be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 883A:3017FF:16F588:201F26:6A579E05 |
| html-safe-nonce | e26aef2db01881ea03b49cde065c34c969f25fca7ab189714e7464de76d33ff9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNBOjMwMTdGRjoxNkY1ODg6MjAxRjI2OjZBNTc5RTA1IiwidmlzaXRvcl9pZCI6IjI4NDk0MjEyNjYwNDk4MDE3MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 317114c2f0c81100e4b4a4c15480d2a0523bcd5d223727c790ac0b7dac2a25f8 |
| hovercard-subject-tag | issue:260113540 |
| 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/4911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d931ed085ece11c5654c53beb8a5e4ca52ec13e2a067263c38bedf6c556782f/PowerShell/PowerShell/issues/4911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d931ed085ece11c5654c53beb8a5e4ca52ec13e2a067263c38bedf6c556782f/PowerShell/PowerShell/issues/4911 |
| og:image:alt | PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs Line 116 in 1c921cd "WindowsPowerShell/{0}", PSVersionInfo.PSVersion); This should be just PowerShell ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markekraus |
| 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 | 0dd6847d644323df8f8c1368c065f9f630095e3b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width