download devcon form Microsoft
1. Find the registry key for your adapter [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\
2. Find the ID of your network adapter
example: devcon hwids PCI\VEN*
then find at this simple script your answer
@echo off
set ip=182.31.24.21
set mac=4C0010524026
set interface=Local Area Network
set mask=255.255.255.0
set gateway=182.31.24.1
set dns1=212.221.112.2
rem ======================
set metric=0
set mac_reg=[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0002]
devcon disable PCI\VEN_10EC
echo Windows Registry Editor Version 5.00 > tmp%interface%.reg
echo %mac_reg% >> tmp%interface%.reg
echo "networkaddress"="%mac%" >> tmp%interface%.reg
regedit /s tmp%interface%.reg
del tmp%interface%.reg
netsh interface ip set address name=%interface% static %ip% %mask% %gateway% %metric%
netsh interface ip set dns name=%interface% static %dns1%
devcon enable PCI\VEN_10EC