VMware Cloud Community
dwizzle
Contributor
Contributor
Jump to solution

Set-NetworkAdapter VDS

Will the following command work the same for a dvportgroup as it would a standard port group?

Get-VM $VMname | Get-NetworkAdapter |Set-NetworkAdapter -NetworkName "$network"

Unfortunately I don't have a VDS to test with.

0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

Yes, this command will work for a dvportgroup the same as for a standard portgroup. You can check example 5 of the Set-NetworkAdapter help.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

0 Kudos
1 Reply
RvdNieuwendijk
Leadership
Leadership
Jump to solution

Yes, this command will work for a dvportgroup the same as for a standard portgroup. You can check example 5 of the Set-NetworkAdapter help.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos