Sometimes it&#8217;s useful to have opportunity to run and debug powerCLI scripts/functions from standard Powershell ISE install on AdminPC powerCLI open Powershell ISE copy and paste into command line below: Import-Module VMware.DeployAutomation Import-Module VMware.ImageBuilder Import-Module VMware.VimAutomation.Cis.Core Import-Module VMware.VimAutomation.Common Import-Module VMware.VimAutomation.Core Import-Module VMware.VimAutomation.HA Import-Module VMware.VimAutomation.License Import-Module VMware.VimAutomation.Sdk Import-Module VMware.VimAutomation.Storage Import-Module VMware.VimAutomation.vds if you need to have powerCLI modules in Powershell ISE always, then create under your user account powershell profile: new-item -path $profile -itemtype file -force powershell_ise $profile and add into your profile above commands, or  <span><a href="https://www.itforce.mn/index.php/2019/01/31/how-to-import-powercli-modules-into-standard-powershell-ise/" class="readmore">Continue reading &rarr;</a></span>{"id":1401,"date":"2019-01-31T20:16:37","date_gmt":"2019-01-31T12:16:37","guid":{"rendered":"https:\/\/www.itforce.mn\/?p=1401"},"modified":"2021-04-30T08:26:12","modified_gmt":"2021-04-30T00:26:12","slug":"how-to-import-powercli-modules-into-standard-powershell-ise","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2019\/01\/31\/how-to-import-powercli-modules-into-standard-powershell-ise\/","title":{"rendered":"How to import powerCLI modules into standard Powershell ISE"},"content":{"rendered":"<p>Sometimes it&#8217;s useful to have opportunity to run and debug powerCLI scripts\/functions from standard Powershell ISE<\/p>\n<ol>\n<li>install on AdminPC powerCLI<\/li>\n<li>open Powershell ISE<\/li>\n<li style=\"text-align: left;\">copy and paste into command line below:\n<pre>Import-Module VMware.DeployAutomation\r\nImport-Module VMware.ImageBuilder\r\nImport-Module VMware.VimAutomation.Cis.Core\r\nImport-Module VMware.VimAutomation.Common\r\nImport-Module VMware.VimAutomation.Core\r\nImport-Module VMware.VimAutomation.HA\r\nImport-Module VMware.VimAutomation.License\r\nImport-Module VMware.VimAutomation.Sdk\r\nImport-Module VMware.VimAutomation.Storage\r\nImport-Module VMware.VimAutomation.vds\r\n\r\n<\/pre>\n<\/li>\n<\/ol>\n<p>if you need to have powerCLI modules in Powershell ISE always, then create under your user account powershell profile:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>new-item -path $profile -itemtype file -force<\/li>\n<li>powershell_ise $profile<\/li>\n<li>and add into your profile above commands, or just one line<br \/>\n.&#8217;C:\\Program Files (x86)\\VMware\\Infrastructure\\PowerCLI\\Scripts\\Initialize-PowerCLIEnvironment.ps1&#8242;<\/li>\n<li>save your powershell profile.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1401","post","type-post","status-publish","format-standard","hentry","category-powercli"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=1401"}],"version-history":[{"count":5,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1401\/revisions"}],"predecessor-version":[{"id":1603,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1401\/revisions\/1603"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=1401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=1401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=1401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}