Changing the DNS Server Address on remote computers.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to change the DNS Server IP Address on 1000 computers, out which 200
have static address. I am looking for a way to change them remotely either
through WMI or netsh or any other method. I could not find the parameter
through WMI Script that can make the changes, and I think that finding the
interface for DNS would also be another challenge.

I need some help to scripts, documents or anything that might be helpful.

Thanks in advance.
IK
 
I need to change the DNS Server IP Address on 1000 computers, out which 200
have static address. I am looking for a way to change them remotely either
through WMI or netsh or any other method. I could not find the parameter
through WMI Script that can make the changes, and I think that finding the
interface for DNS would also be another challenge.

I need some help to scripts, documents or anything that might be helpful.

Thanks in advance.
IK
Hi IK,

what Client OS are we talking about?

Gruesse - Sincerely,

Ulf B. Simon-Weidner
 
Ulf B. Simon- said:
Hi IK,

what Client OS are we talking about?
Reason for that Question:
If we are talking about Windows XP (or Windows NT) you are able to set this via
Group Policy (easier than scripting it for all clients).

On Windows XP it's in the GPO underneath Computer Configuration ->
Administrative Templates -> Network -> DNS Client -> DNS Servers

On Windows NT you need to create your own ADM Template to set this in the
Registry.

On Windows 2000 you need to use a script since there's no GPO provided and the
settings are in the Registry underneath the Network Adapters GUID which is
usually not static for each client in the company.

Gruesse - Sincerely,

Ulf B. Simon-Weidner
 
Dear IK,

Thank you for posting. And thank Ulf B and Deji very much for their helpful
information.
You can also take a look at the following script example:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/ScriptCen
ter/network/Scnet116.asp

Hope the above information helps. Have a nice day!

Sincerely,

Lee Li
MCSE2000, MCDBA2000
Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
Dear IK,

Thank you for your update.

Since you are using Windows 2000, you can use the group policy to meet your
requirement.
You can create a custom Group Policy template to meet your requirement:

01. copy/paste the following to a DnsUpdateOnAllAdapters.adm file:


Class Machine

Category !!AdministrativeServices

Category !!DNSClient


Policy !!DnsUpdateOnAllAdapters
Keyname "System\CurrentControlSet\Services\Netlogon\Parameters"
Explain !!DnsUpdateOnAllAdapters_Help
Valuename "DnsUpdateOnAllAdapters"
End Policy


End Category ;;DNS Client

End Category ;;AdministrativeServices

[strings]
AdministrativeServices="System"
DNSClient="DNS Client"
DnsUpdateOnAllAdapters="Enable Dynamic Update On All Adapters"
DnsUpdateOnAllAdapters_Help="Restore Pre-SP1 DDNS functionality."

;End of Strings
02. Open Active Directory Users and Computers and right-click the target
domain or OU. Press Properties.
03. Select the Group Policy tab and edit the GPO to which you wish to add
the custom policy.

04. Navigate to Computer Configuration / Administrative Templates.

05. On the View menu, clear the Show Policies Only box.

06. Right-click Administrative Templates and press Add/Remove Templates.

07. Press Add and select the DnsUpdateOnAllAdapters.adm file. Press Close.

08. Navigate to Computer Configuration / Administrative Templates / System
/ DNS Client.

09. Double-click Enable Dynamic Update On All Adapters.

10. Press Enable and OK.

Hope the above information helps. Have a nice day!

Sincerely,

Lee Li
MCSE2000, MCDBA2000
Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
Back
Top