Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 258290

Re: Power-CLI Connect-VIServer - Server gives error message "not recognized as the name of a cmdlet ..."

$
0
0

If you want the modules to load each time you start powershell, you can edit your powershell profile with something like .....

 

cd "C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts"

.\Initialize-PowerCLIEnvironment.ps1

cd c:\

Import-Module VMware.VimAutomation.Core

 

Your powershell profile is usually found in C:\Users\[username]\WindowsPowerShell and can be named Microsoft.PowerShell_profile.ps1

You can find your profile location and details by typing in $profile

 

See this link for details ...

How to Integrate PowerCLI 6.5 with PowerShell and PowerShell ISE – [bw] wickhorst.com


Viewing all articles
Browse latest Browse all 258290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>