{"id":620,"date":"2016-11-28T11:17:18","date_gmt":"2016-11-28T10:17:18","guid":{"rendered":"http:\/\/vblog.hochsticher.de\/?p=620"},"modified":"2016-11-28T11:32:30","modified_gmt":"2016-11-28T10:32:30","slug":"powercli-6-5-watchout-the-modules","status":"publish","type":"post","link":"https:\/\/vblog.hochsticher.de\/?p=620","title":{"rendered":"PowerCLI 6.5 watchout the Modules"},"content":{"rendered":"<p>You have to look at the Modules in PowerCLI 6.5.<\/p>\n<p>When you wrote your Scripts with the PowerShell ISE you had to load the PSSnapins before.<\/p>\n<p>In 6.5 there are no longer PSSnapins! Now there are only Modules!<\/p>\n<p><!--more--><\/p>\n<p>Before PowerCLI 6.5 you added your Snapins via<\/p>\n<pre class=\"lang:default decode:true\">Add-PSSnapin VMware.VimAutomation.Core<\/pre>\n<p>In 6.5 you have to load the Modules via<\/p>\n<pre class=\"lang:default decode:true \">Import-Module VMware.VimAutomation.Core\r\nImport-Module VMware.VimAutomation.Vds\r\nImport-Module VMware.VimAutomation.Cloud\r\nImport-Module VMware.VimAutomation.PCloud\r\nImport-Module VMware.VimAutomation.Cis.Core\r\nImport-Module VMware.VimAutomation.Storage\r\nImport-Module VMware.VimAutomation.HorizonView\r\nImport-Module VMware.VimAutomation.HA\r\nImport-Module VMware.VimAutomation.vROps\r\nImport-Module VMware.VumAutomation\r\nImport-Module VMware.DeployAutomation\r\nImport-Module VMware.ImageBuilder\r\nImport-Module VMware.VimAutomation.License<\/pre>\n<p>Otherwise you start the VMware Script witch is located under (default)<\/p>\n<p style=\"text-align: left;\">&#8220;C:\\Program Files (x86)\\VMware\\Infrastructure\\PowerCLI\\Scripts\\Initialize-PowerCLIEnvironment.ps1&#8221;<\/p>\n<p style=\"text-align: left;\">&nbsp;<\/p>\n<p style=\"text-align: left;\">Also checkout the new functions that came with 6.5 here:<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blogs.vmware.com\/PowerCLI\/2016\/11\/new-release-powercli-6-5-r1.html\">http:\/\/blogs.vmware.com\/PowerCLI\/2016\/11\/new-release-powercli-6-5-r1.html<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have to look at the Modules in PowerCLI 6.5. When you wrote your Scripts with the PowerShell ISE you had to load the PSSnapins before. In 6.5 there are no longer PSSnapins! Now there are only Modules!<\/p>\n","protected":false},"author":1,"featured_media":627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powercli","category-vsphere"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=620"}],"version-history":[{"count":6,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/620\/revisions\/626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/media\/627"}],"wp:attachment":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}