To run a command such as "Get-VM" against all connections, set the connection mode to multiple with the following command:
Set-PowerCLIConfiguration -DefaultVIServerMode Multiple -Confirm:$falseOutput:
Proxy Policy Default Server Invalid Certificate Mode Action ------------ --------------- -------------------- UseSystemProxy Multiple UnsetTo get the current config use Get-PowerCLIConfiguration:
Get-PowerCLIConfigurationOutput:
Proxy Policy Default Server Invalid Certificate Mode Action ------------ --------------- -------------------- UseSystemProxy Multiple Unset
Reference: http://www.vmware.com/support/developer/PowerCLI/PowerCLI50/html/Set-PowerCLIConfiguration.html
No comments:
Post a Comment