Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 2770

Setting VM Network VM Subnet through scvmm command do not work

$
0
0

Hi,

     I am willing to do below operation through powershell .

How do I change VM Netowrk of a VM in one of the hosts from scvmm .
Eg. All hosts->host1->VM1->properties->Hardware Configuration->choose "connected to VM network" , press Browse choose "VM network"
Logical switch --> Choose logical switch from drop down.

I tried below commands :

PS C:\Users\administrator.PNSC0> $VM = Get-SCVirtualMachine -Name "DSL-Mstr-2298"

PS C:\Users\administrator.PNSC0> $Adapter = $VM.VirtualNetworkAdapters[0]

PS C:\Users\administrator.PNSC0> Set-SCVirtualNetworkAdapter -VirtualNetworkAdapter $Adapter[0] -VMwarePortGroup "Network-VmTraffic" -VirtualNetwork "Orange-Switch"

Command o/p

 

SlotId                                    : 0

VirtualNetwork                            : Orange-Switch

VMwarePortGroup                           : Network-VmTraffic

But GUI do not reflect the change


Please help since this operation I need to do for few hundred VM so through GUI is not feasible .

I am using scvmm 2012 R2 .

Thanks & regards,

Prashant


Viewing all articles
Browse latest Browse all 2770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>