{"id":4270,"date":"2024-10-13T10:35:15","date_gmt":"2024-10-13T10:35:15","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=4270"},"modified":"2024-10-13T10:35:16","modified_gmt":"2024-10-13T10:35:16","slug":"install-vmware-powercli","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=4270","title":{"rendered":"Install VMware PowerCLI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can install VMware PowerCLI via either the online installer, i.e direct into PowerShell, or via an offline installer. The offline installer instructions can be found <a href=\"https:\/\/vdc-download.vmware.com\/vmwb-repository\/dcr-public\/ef3281e2-e1d8-4ee3-8c81-52ff40b3562c\/bdd425a6-94f0-491b-b3cc-6d3345757fc8\/GUID-3034A439-E9D7-4743-ABC0-EE38610E15F8.html\" data-type=\"link\" data-id=\"https:\/\/vdc-download.vmware.com\/vmwb-repository\/dcr-public\/ef3281e2-e1d8-4ee3-8c81-52ff40b3562c\/bdd425a6-94f0-491b-b3cc-6d3345757fc8\/GUID-3034A439-E9D7-4743-ABC0-EE38610E15F8.html\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For online installation, you can perform the following steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1 &#8211; Open PowerShell, you may need to &#8220;Run as Administrator&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2 &#8211; Install all PowerCLI modules with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-Module VMware.PowerCLI -Scope CurrentUser<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can install individual PowerCLI modules by running the &#8220;Install-Module&#8221; cmdlet with the module name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>If you see a warning that you are installing from an untrusted repository, press &#8220;y&#8221; and then press Enter to confirm the installation. <\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3 &#8211; Next import the VMware VIM automation core module with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import-module vmware.vimautomation.core<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you get issues with execution policy, you may need to un-restrict the policy as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set-executionpolicy -executionpolicy unrestricted<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4 &#8211; Once installed, verify it has been installed correctly by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Module VMware* -ListAvailable<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5 &#8211; Make a test connection to a vCenter, this assumes that you are using Windows Authentication:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>connect-viserver -server vcenter.domain.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can install VMware PowerCLI via either the online installer, i.e direct into PowerShell, or via an offline installer. The offline installer instructions can be found here. For online installation, you can perform the following steps: Step 1 &#8211; Open PowerShell, you may need to &#8220;Run as Administrator&#8221;. Step 2 &#8211; Install all PowerCLI modules &#8230; <a title=\"Install VMware PowerCLI\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=4270\" aria-label=\"Read more about Install VMware PowerCLI\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-4270","post","type-post","status-publish","format-standard","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4270"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4270\/revisions"}],"predecessor-version":[{"id":4271,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4270\/revisions\/4271"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}