Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

error while I run .ps script

$
0
0

I migrated from PowerCLI 6.3 to latest (10.11) in Windows 2012.

I create test.ps script but when I run it I got:

 

C:\Windows\System32\WindowsPowerShell\v1.0\powersell.exe -noe -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\" $true". : The term 'C:\Program Files (x86)\VMware\Infrastructure\vSpherePowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:3

+ . "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scri ...

                                        

As if There was link to Initialize-PowerCLIEnvironmet.ps1 file but I'm not able to understand where is it?

 

This happens only if I click on script because if I open manually powershell by Windows link and I run command there is no problem, but I lost automatically mechanism!

 

Suggestions please?


Viewing all articles
Browse latest Browse all 182126

Trending Articles



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