VSpharePowerCLi在Windows 7/2008 64位机上运行的问题

标签:
it |
分类: 工作 |
I run Windows 7 x64 and the issue I had is when installing the latest PowerCLi the command box flashes on the screen and then disappears. It seems the issue is related to the target line in the shortcut that is used to launch PowerCLi.
Below is the original line from the installation shortcut with the bold being what causes the issue:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-psc “C:\Program Files (x86)\VMware\Infrastructure\vSphere
PowerCLI\vim.psc1″ -noe -c “. \”C:\Program Files
(x86)\VMware\Infrastructure\vSphere
PowerCLI\Scripts\Initialize-VIToolkitEnvironment.ps1\”"
Below is what the line should be changed to again with the text in bold that has been change:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noe -c “Add-PSSnapin VMware.VimAutomation.Core; . \”C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\”"
In the above please make sure to replace ” once copied or it will not work
Once the line has been changed PowerCLi will launch and open without issue. All that is needed then is to set the signed scripts to run which is done by running the following command at the prompt:
set-executionpolicy remotesigned
Select ‘yes’ and type exit
Open PowerCLi again and you will be prompted with a fully functioning PowerCLi installation to start working with.
我照着这个改了,好了!这帮小子又可以吹牛睡大觉了。可是VMware是怎么推出这个程序的?这么大条虫子在里面。