VMM – PowerShell oneliners to set VM Network Optimization (Part 2)

Some time ago I wrote a blog postย PowerShell oneliner to enable VM Network Optimization in VMM

Last week I received a question about this post: Howto accomplish this on only VM’s on a specific cluster, or even a specific node.
So let’s start with the node since that’s the easy one.

To select all virtual machines on a node:

And to enable the VM Network Optimzation on them:

But most clusters will consist of more than one node…
Executing a line for each cluster node? Well… there should be a more elegant way to accomplish that task.
And there is ๐Ÿ˜‰

To select the cluster:

To select all nodes within that cluster:

To select all VMs on a cluster:

And of course to set the VM Network Optimization on all those VM’s:

Note how easy you can use the pipeline this way in order to go deeper from cluster to nodes to VM’s ๐Ÿ™‚


Leave a Reply

Your email address will not be published. Required fields are marked *