Reply to Message

View discussion in a popup

Replying to:
bmcb555
Enthusiast
Enthusiast

Here you go, powercli is the easiest way to achieve that

First connect to your vcenter - Connect-VIServer -Server X.X.X.X

Change the targetNetwork to whatever you want it to be. Change the vmNames to whatever you need them to be "vm1", "vm2", "v3" and that'll migrate them all across.

Output from my lab

PS C:\Users\Administrator\Desktop> .\change_network.ps1

Name Type NetworkName MacAddress WakeOnLan
Enabled
---- ---- ----------- ---------- ---------
Network adapter 1 Vmxnet3 Management_VLA… 00:0c:29:68:c5:b6 True
Network changed for nsxvcenter.homelab.local to Management_VLAN70

Change the script to ps1 extension and obviously demo it in a lab before running a random persons script :slightly_smiling_face: 

 

 

 

View solution in original post

Reply
0 Kudos