Title: Out-GridView not working as expected on PowerShell 7 · Issue #10599 · PowerShell/PowerShell · GitHub
Open Graph Title: Out-GridView not working as expected on PowerShell 7 · Issue #10599 · PowerShell/PowerShell
X Title: Out-GridView not working as expected on PowerShell 7 · Issue #10599 · PowerShell/PowerShell
Description: There is a script which retrieves some information from a database and returns values on console. When I run this script to fetch information and pipe it to Out-GridView it works just fine on PowerShell 5.1.18362.145. I installed PowerSh...
Open Graph Description: There is a script which retrieves some information from a database and returns values on console. When I run this script to fetch information and pipe it to Out-GridView it works just fine on Power...
X Description: There is a script which retrieves some information from a database and returns values on console. When I run this script to fetch information and pipe it to Out-GridView it works just fine on Power...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10599
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out-GridView not working as expected on PowerShell 7","articleBody":"There is a script which retrieves some information from a database and returns values on console. When I run this script to fetch information and pipe it to Out-GridView it works just fine on PowerShell 5.1.18362.145.\r\n\r\nI installed PowerShell 7 (7.0.0-preview.4) and installed Graphical tools (Microsoft.PowerShell.GraphicalTools)from Powershell Gallery, It is now able to return the value fine on console but when it is piped to Out-GridView, It throws exception.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n\r\n./Script-Name -ComputerName Server1.domail.com | Out-GridView\r\n```\r\n\r\n# Expected behavior\r\n\r\n```It should redirect the output to Grid view but it fails with an exception.\r\nOutput on console with PowerShell 5.1, Works for Out-GridView too,\r\nsystem.hostname : Server1.domain.com\r\nowner Name : PRAKASH KUMAR\r\nowner Email : prakash@email.com\r\nos_family : windows\r\nos_version : 2012R2\r\nplatform : vmware\r\nStatus : Running\r\nAdded at : Mar 20, 2017 11:10:23\r\nlandscape : Dev\r\npurpose : testing\r\nstability_zone : 2\r\n\r\n\r\nConsole Output on PowerShell 7, Not Working on Out-GridView\r\n\r\nsystem.hostname : Server1.domain.com\r\nowner Name : PRAKASH KUMAR\r\nowner Email : prakash@email.com\r\nos_family : windows\r\nos_version : 2012R2\r\nPlatform : vmware\r\nStatus : Running\r\nAdded at : Mar 20, 2017 11:10:23\r\nlandscape : Dev\r\npurpose : testing\r\nstability_zone : 2\r\n\r\n```\r\n\r\n# Actual behavior\r\n\r\n```\r\nException while executing with Out-GridView\r\n\r\nogv : At line:1 char:10\r\n+ $_.owner Name\r\n+ ~~~~\r\nUnexpected token 'Name' in expression or statement.\r\nAt line:1 char:64\r\n+ .\\ITC-Query.ps1 -ComputerName or1010050152190.corp.adobe.com |ogv\r\n+ ~~~\r\n+ CategoryInfo : ParserError: (:) [Out-GridView], ParseException\r\n+ FullyQualifiedErrorId : UnexpectedToken,OutGridView.Cmdlet.OutGridViewCmdletCommand\r\n\r\nPS C:\\Work\\Working>\r\n\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```\r\nNot Working for Out-GridView\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-preview.4\r\nPSEdition Core\r\nGitCommitId 7.0.0-preview.4\r\nOS Microsoft Windows 10.0.18362\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\nWorking for Out-GridView\r\nName Value\r\n---- -----\r\nPSVersion 5.1.18362.145\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.18362.145\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\n","author":{"url":"https://github.com/Prakash82x","@type":"Person","name":"Prakash82x"},"datePublished":"2019-09-23T10:51:10Z","url":"https://github.com/PowerShell/PowerShell/issues/10599"}
| 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:e28cde31-6740-6bfa-d687-a8d2d977756a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E540:5453:5AFC2:8296A:6AFD48D8 |
| html-safe-nonce | b90e73e63c4453fb60cc74fa602a80ba6ec2034923fc0a7320ae2f1d2a9baa55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTQwOjU0NTM6NUFGQzI6ODI5NkE6NkFGRDQ4RDgiLCJ2aXNpdG9yX2lkIjoiMTM1NzA0NzQ0MjEyMTI0NjkzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 739a8cfbade498e6cba7939ae6d51fbe43d074e10e2ffadfe58ae8f34f59d4f8 |
| hovercard-subject-tag | issue:497024969 |
| 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/10599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41ec230f4433afd54d4644ebbefb8f89faf3a7c5d093141c5c7391248e3923e6/PowerShell/PowerShell/issues/10599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41ec230f4433afd54d4644ebbefb8f89faf3a7c5d093141c5c7391248e3923e6/PowerShell/PowerShell/issues/10599 |
| og:image:alt | There is a script which retrieves some information from a database and returns values on console. When I run this script to fetch information and pipe it to Out-GridView it works just fine on Power... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Prakash82x |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width