{"id":86403,"date":"2018-06-26T00:01:44","date_gmt":"2018-06-26T08:01:44","guid":{"rendered":"http:\/\/blogs.msdn.microsoft.com\/?p=615"},"modified":"2019-10-09T11:36:07","modified_gmt":"2019-10-09T19:36:07","slug":"powershell-powertip-checking-your-powershell-version","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powershell-powertip-checking-your-powershell-version\/","title":{"rendered":"PowerShell PowerTip: Checking your PowerShell version"},"content":{"rendered":"<p>If there is one question I could say I get the most in PowerShell, it is:<\/p>\n<blockquote><p>How do I check my version?<\/p><\/blockquote>\n<p>Its not a hard thing, but its not an obvious thing. We can actually check our version with a build in variable called PSVersionTable<\/p>\n<pre class=\"lang:ps decode:true\">$psversiontable.PSVersion<\/pre>\n<pre class=\"lang:default decode:true  \">Major Minor Build Revision\r\n----- ----- ----- --------\r\n5 1 17134 48<\/pre>\n<p>Hope that helps, tune in more often to get short and sweet PowerTips!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If there is one question I could say I get the most in PowerShell, it is: How do I check my version? Its not a hard thing, but its not an obvious thing. We can actually check our version with a build in variable called PSVersionTable $psversiontable.PSVersion Major Minor Build Revision &#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212;&#8211; [&hellip;]<\/p>\n","protected":false},"author":7300,"featured_media":87096,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1738],"tags":[2221,2125,377,356],"class_list":["post-86403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-kory-thacher","tag-koryt","tag-powershell","tag-powertip"],"acf":[],"blog_post_summary":"<p>If there is one question I could say I get the most in PowerShell, it is: How do I check my version? Its not a hard thing, but its not an obvious thing. We can actually check our version with a build in variable called PSVersionTable $psversiontable.PSVersion Major Minor Build Revision &#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212;&#8211; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/7300"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=86403"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=86403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=86403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=86403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}