Hi all,
I am trying to use a work around for non-persistent pools, because of one application's dependence on static IPs. Is there a way to re-assign a port group to a guest VM?
Thank you in advance!!
Tim
Try thisd
Get-VM <vm-name> | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName <new-portgroupname> -Confirm:$false
If you have more than 1 NIC connected to the guest you can use a where clause to select the correct NIC
Get-VM <vm-name> | Get-NetworkAdapter | where{$_.Name -eq "Network adapter 2"} | ` Set-NetworkAdapter -NetworkName <new-portgroupname> -Confirm:$false
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try thisd
Get-VM <vm-name> | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName <new-portgroupname> -Confirm:$false
If you have more than 1 NIC connected to the guest you can use a where clause to select the correct NIC
Get-VM <vm-name> | Get-NetworkAdapter | where{$_.Name -eq "Network adapter 2"} | ` Set-NetworkAdapter -NetworkName <new-portgroupname> -Confirm:$false
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is that using PowerCLI?
Yes, those are PowerCLI cmdlets.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference