{"id":5590,"date":"2012-12-21T11:27:00","date_gmt":"2012-12-21T19:27:00","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=5590"},"modified":"2012-12-21T13:30:38","modified_gmt":"2012-12-21T21:30:38","slug":"out-gridview-fails-in-powershell-v2-after-v3-update","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2012\/12\/21\/out-gridview-fails-in-powershell-v2-after-v3-update\/","title":{"rendered":"Out-GridView fails in PowerShell V2 after V3 update"},"content":{"rendered":"<p>Seems there was a recent update to PowerShell V3 that has affected PowerShell V2. Now the Out-Gridview&nbsp; cmdlet produces an error and no longer functions in PowerShell V2.<\/p>\n<p><font color=\"#ff0000\">This issue affects all products using PowerShell including packaged scripts running in V2 mode. V2 only machines may not be affected<\/font><\/p>\n<p>To reproduce the error start PowerShell in v2 mode:<\/p>\n<p>powershell.exe \u2013version 2.0<\/p>\n<p>&nbsp;<\/p>\n<p>Next run the Out-GridView and you will get the following error:<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/12\/image9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2012\/12\/image_thumb4.png\" width=\"521\" height=\"302\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>We reported the issue to Microsoft using Connect:<\/p>\n<p><a title=\"https:\/\/connect.microsoft.com\/PowerShell\/feedback\/details\/774972\/out-gridview-fails-to-show-in-v2-after-v3-update\" href=\"https:\/\/connect.microsoft.com\/PowerShell\/feedback\/details\/774972\/out-gridview-fails-to-show-in-v2-after-v3-update\">https:\/\/connect.microsoft.com\/PowerShell\/feedback\/details\/774972\/out-gridview-fails-to-show-in-v2-after-v3-update<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>[UPDATE]<\/p>\n<p>It seems this is by design, which in turn doesn\u2019t make v3 fully backwards compatible. Please vote up the issue if you believe they should fix this.<\/p>\n<p>A workaround is to use a WinForms DataGridView instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seems there was a recent update to PowerShell V3 that has affected PowerShell V2. Now the Out-Gridview&nbsp; cmdlet produces an error and no longer functions in PowerShell V2. This issue affects all products using PowerShell including packaged scripts running in V2 mode. V2 only machines may not be affected To reproduce the error start PowerShell [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[25],"tags":[757,794,28,153,756],"class_list":["post-5590","post","type-post","status-publish","format-standard","hentry","category-windows-powershell","tag-bug","tag-out-gridview","tag-powershell","tag-v2","tag-v3"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/5590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=5590"}],"version-history":[{"count":5,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/5590\/revisions"}],"predecessor-version":[{"id":5598,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/5590\/revisions\/5598"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=5590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=5590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=5590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}