Open VMware VSphere powercli appears
Unable to load file C:\Program files (x86) \vmware\infrastructure\vsphere powercli\scripts\ INITIALIZE-POWERCLIENVIRONMENT.PS1, because scripting is forbidden in this system. For more information, see "Get-help about_signing". Location Line: 1 characters: 2
+ . <<<< C:\Program Files (x86) \vmware\infrastructure\vsphere Powercli\script
S\initialize-powerclienvironment.ps1 "
+ categoryinfo:notspecified: (:) [], Pssecurityexception
+ fullyqualifiederrorid:runtimeexception
Execute:get-executionpolicy command to view policy
PS C:\Program Files (x86) \vmware\infrastructure\vsphere powercli> Get-executionpolicy
Restricted
Display as: Restricted This policy does not allow any scripts to run
Execution: set-executionpolicy remotesigned Modify execution policy
PS C:\Program Files (x86) \vmware\infrastructure\vsphere powercli> Set-executionpolicy remotesigned
Executing policy changes
Execution policies can help you prevent untrusted scripts from being executed. Changing execution policies can create security risks, such as http://go.microsoft.com/fwlink/?LinkID=135170
Described in the About_execution_policies Help topic. Do you want to change the execution policy?
[Y] is (y) [a] is all (a) [n] No (n) [l] No (l) [s] Pause (s) [?] Help (default = "n"): Y
PS C:\Program Files (x86) \vmware\infrastructure\vsphere powercli> Get-executionpolicy
RemoteSigned
Exit Powercli, then open
VMware vsphere POWERCLI because scripting is forbidden in this system