Самый простой способ был бы с помощью сценария. Вы можете изменить приведенный ниже скрипт powershell по своему вкусу.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394217(v=vs.85).aspx
function Set-IPAddress
{
param( [string]$NIC=$(read-host "Enter the NIC to be set (example: "Local Area Connection")"),
[string]$IP = $(read-host "Enter an IP Address (ie 192.168.0.5)"),
[string]$NM = $(read-host "Enter the subnet mask (ie 255.255.255.0)"),
[string]$GW = $(read-host "Enter the Gateway (ie 192.168.0.1)"),
[string]$DNS1 = $(read-host "Enter the first DNS Server (ie 8.8.8.8)"),
[string]$DNS2 = $(read-host "Enter the second DNS Server (ie 8.8.4.4)"),
[string]$registerDNS = "TRUE"
)
$DNS = $DNS1
if($DNS2){$DNS ="$DNS1,$DNS2"}
$index = (gwmi Win32_NetworkAdapter | where {$_.netconnectionid -eq $NIC}).InterfaceIndex
$NetInterface = Get-WmiObject Win32_NetworkAdapterConfiguration | where {$_.InterfaceIndex -eq $index}
$NetInterface.EnableStatic($IP, $SN)
$NetInterface.SetGateways($GW)
$NetInterface.SetDNSServerSearchOrder($DNS)
$NetInterface.SetDynamicDNSRegistration($registerDns)
}