Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change DNS settings via netsh on remote XP computers

Status
Not open for further replies.

postmanplod

Programmer
Aug 18, 2008
47
GB
Hello, I'm using netsh to try and change the static DNS ip's remotly (from a server 03 logged in as admin) using the following:

C:\Documents and Settings\User\Desktop>netsh -r Computername interface ip set dns name="Local Area Connection" static 192.168.1.5

But receive the following:
The following command was not found: interface ip set dns "name=Local Area Connection" static 192.168.1.5.

Any ideas?
 
Thanks for your help!

The solution is to change the '-r' to '-u'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top