disable or enable the lan card in windows server code example
Example: cmd disable wifi driver
netsh interface set interface name="Wireless Network Connection" admin=DISABLED
netsh interface set interface name="Wireless Network Connection" admin=DISABLED