- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After installing powercli, when you run the powerCLI shortcut, it calls a ps1 script that adds the snapin. Running powershell.exe alone does not initialize the snapin by default, unless you've added it to your powershell profile.
The reason the get-vicommand is not working is likely these couple of things:
- Execution Policy not set to remotesigned (Set-ExecutionPolicy -RemoteSigned)
- The Snap-In was not initialized (Add-PSsnapin VMware.VimAutomation.Core)
Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Blog: https://tech.zsoldier.com
Twitter: @zsoldier