vmware - Running powershell scripts specific to a VCenter when connected to may VCenters -


assuming i'm connected more 1 vcenters, how use get-vm command specific vcenter , not all?

eg: im connected server1 , server2

i want list of vms in server 1 , not server 2.

you can use -server switch get-vm. i.e.

$server1 = connect-viserver server1 $server2 = connect-viserver server2 get-vm -server $server1 get-vm -server $server2 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -