Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At work, we are in the process of migrating over 200 computers from static IPs to DHCP. The DHCP server is configured. My biggest hurdle is physically going to every single computer in the area and configuring them all for DHCP.

I am trying to use netsh to accomplish this. However, I cannot even seem to set one computer to DHCP remotely. The command I am trying is:

netsh -r COMPUTERNAME interface ip set address name="Local Area Connection" source=dhcp
netsh -r COMPUTERNAME interface ip set dns name="Local Area Connection" source=dhcp

This results in the error

The following command was not found: interface ip set address "name=Local Area Connection" source=dhcp.

Any ideas?

share|improve this question
up vote 0 down vote accepted

Found a workaround. I created a batch file that had the netsh commands in it, then used WMI to start that batch file remotely.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .