{"id":6428,"date":"2015-05-29T20:09:25","date_gmt":"2015-05-29T12:09:25","guid":{"rendered":"http:\/\/onthe8spot.com\/?p=6428"},"modified":"2015-05-29T20:09:25","modified_gmt":"2015-05-29T12:09:25","slug":"getting-gvm-to-work-in-windows-using-powershell","status":"publish","type":"post","link":"http:\/\/onthe8spot.com\/index.php\/2015\/05\/29\/getting-gvm-to-work-in-windows-using-powershell\/","title":{"rendered":"Getting GVM to work in Windows using PowerShell"},"content":{"rendered":"<p>I&#8217;ve been trying to learn griffon and upgrading to the latest version I noticed that there is a nifty tool that can be used to install Groovy related stuff like groovy \/ grails\/ griffon.\u00a0I use ubuntu for my personal coding and was able to get it up and running quite easily.<br \/>\nGVM is inspired by a Ruby tool and copying such and awesome utility was a no brainer.<br \/>\nHaving used it with my coding experiments at home I just had to have this for work.<br \/>\n&nbsp;<br \/>\nThe first set back is that the steps required an upgrade to PowerShell 3.0.<br \/>\nYou just have to google PowerShell 3.0 installer and you would have to install. Just remember to pick the correct version for your OS. There are different versions for Windows 7, Windows 8 and Windows Server 2008. Remember to close any open Powershell \u00a0consoles before starting the installation.<br \/>\nAfter installation you have to check the version of PowerShell installed by typing this command within Power Shell:<\/p>\n<p style=\"padding-left: 30px;\">$PSVersionTable.PSVersion<\/p>\n<p>This will display the version of the Powershell installed:<\/p>\n<p style=\"padding-left: 60px;\">Major Minor Build Revision<br \/>\n&#8212;&#8211; \u00a0 \u00a0 \u00a0 &#8212;&#8211; \u00a0 \u00a0 \u00a0&#8212;&#8211; \u00a0 &#8212;&#8212;&#8211;<br \/>\n3 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a00 &#8211; \u00a0 \u00a0 \u00a0 \u00a0 \u00a01 &#8211; \u00a0 \u00a0 \u00a0 \u00a0 1<\/p>\n<p>&nbsp;<br \/>\nOpen as Administrator a PowerShell console\u00a0and type this command:<\/p>\n<p style=\"padding-left: 60px;\">Set-ExecutionPolicy RemoteSigned<\/p>\n<p>This will allow you to execute scripts.<br \/>\n&nbsp;<br \/>\nRun this command:<br \/>\n(new-object Net.WebClient).DownloadString(&#8220;http:\/\/psget.net\/GetPsGet.ps1&#8221;) | iex<br \/>\nThis will download the script from github.<br \/>\nType this command to install\u00a0the GVM module:<\/p>\n<p style=\"padding-left: 60px;\">\u00a0Install-Module posh-gvm<\/p>\n<p style=\"padding-left: 60px;\">Import-Module posh-gvm<\/p>\n<p>Type this command to test:<\/p>\n<p style=\"padding-left: 60px;\">gvm help<\/p>\n<p>&nbsp;<br \/>\nSomething like this should be displayed:<\/p>\n<p style=\"padding-left: 90px;\">Usage: gvm &lt;command&gt; &lt;candidate&gt; [version]<br \/>\ngvm offline &lt;enable|disable&gt;<\/p>\n<p style=\"padding-left: 90px;\">commands:<br \/>\ninstall or i &lt;candidate&gt; [version]<br \/>\nuninstall or rm &lt;candidate&gt; &lt;version&gt;<br \/>\nlist or ls &lt;candidate&gt;<br \/>\nuse or u &lt;candidate&gt; [version]<br \/>\ndefault or d &lt;candidate&gt; [version]<br \/>\ncurrent or c [candidate]<br \/>\nversion or v<br \/>\nbroadcast or b<br \/>\nhelp or h<br \/>\noffline &lt;enable|disable&gt;<br \/>\nselfupdate [-Force]<br \/>\nflush &lt;candidates|broadcast|archives|temp&gt;<br \/>\ncandidate : asciidoctorj, crash, gaiden, glide, gradle, grails, griffon, groovy, groovyserv, jbake, lazybones, sp<br \/>\nringboot, vertx<\/p>\n<p style=\"padding-left: 90px;\">version : where optional, defaults to latest stable if not provided<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying to learn griffon and upgrading to the latest version I noticed that there is a nifty tool that can be used to install Groovy related stuff like groovy \/ grails\/ griffon.\u00a0I use ubuntu for my personal coding and was able to get it up and running quite easily. GVM is inspired by &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/onthe8spot.com\/index.php\/2015\/05\/29\/getting-gvm-to-work-in-windows-using-powershell\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting GVM to work in Windows using PowerShell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,79],"tags":[],"class_list":["post-6428","post","type-post","status-publish","format-standard","hentry","category-coding","category-reposts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/6428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/comments?post=6428"}],"version-history":[{"count":0,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/6428\/revisions"}],"wp:attachment":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/media?parent=6428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/categories?post=6428"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/tags?post=6428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}