def set_dhcp_ip(iface):
 cmd = ['netsh', 'interface', 'ip', 'set', 'address', iface, 'dhcp']
 __salt__['cmd.run'](cmd, python_shell=False)
 return {'Interface': iface, 'DHCP enabled': 'Yes'}

def set_dhcp_ip ( iface ) : cmd = [ 'netsh' , 'interface' , 'ip' , 'set' , 'address' , iface , 'dhcp' ] __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) return { 'Interface' : iface , 'DHCP enabled' : 'Yes' }
set windows nic to get ip from dhcp cli example: .