Quick Powershell script to add DHCP reservation for a VM on multiple DHCP servers:
Please refer to DHCP Server Cmdlets in Windows PowerShell for more details.
$DHCPservers = ‘DHCP001’, ‘DHCP002’ $Scope = ‘10.80.24.0’ $IPaddress = ‘10.80.24.12’ $Server = ‘SQL001’ $Domain = ‘internal.vStrong.info’ $VM = Get-VM $Server # $VM.NetworkAdapters.MacAddress returns MAC address in semicolon separated 00:50:56:00:00:00 […]
Recent Comments