PowerCLI命令行出错的解决

PowerCLI出错的解决

PowerCLI C:\> Connect-VIServer
Connect-VIServer : The term 'Connect-VIServer' is not recognized as the name of
 a cmdlet, function, script file, or operable program. Check the spelling of th
e name, or if a path was included, verify that the path is correct and try agai
n.
At line:1 char:1
+ Connect-VIServer
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Connect-VIServer:String) [], Co
   mmandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Add-PSSnapin vmware.vimAutomation.core

Get-PSSnapin


图片.png

图片.png

转载请注明出处 枫叶落 » PowerCLI命令行出错的解决