Remote add DNS server IP to large number of Windows XP PCs

You may run from a management PC to update DNS server IP to large number of PC.

Before the task, check the current setting.

C:\pstools>psexec \\WINXP01 ipconfig /all

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

Windows IP Configuration

        Host Name . . . . . . . . . . . . : WINXP01
        Primary Dns Suffix  . . . . . . . : LOCALDOMAIN.LOCAL
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : Yes
        DNS Suffix Search List. . . . . . : LOCALDOMAIN.LOCAL

Ethernet adapter OnBoard_LAN:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabit
Ethernet Controller
        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.10.100.177
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.10.100.254
        DNS Servers . . . . . . . . . . . : 10.10.100.37
                                            10.10.100.38

ipconfig exited on WINXP01 with error code 0.

We know that the hostname and the interface name is "OnBoard_LAN".  We add a third DNS.

C:\pstools>psexec \\WINXP01 netsh interface ip add dns "OnBoard_LAN" 10.10.100.1
17 index=3

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

確定。

netsh exited on WINXP01 with error code 0.

C:\pstools>psexec \\WINXP01 ipconfig /all

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com


Windows IP Configuration

        Host Name . . . . . . . . . . . . : WINXP01 
        Primary Dns Suffix  . . . . . . . : LOCALDOMAIN.LOCAL
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : Yes
        DNS Suffix Search List. . . . . . : LOCALDOMAIN.LOCAL

Ethernet adapter OnBoard_LAN:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabit
Ethernet Controller
        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 10.10.100.177
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.10.100.248
        DNS Servers . . . . . . . . . . . : 10.10.100.37
                                            10.10.100.38
                                            10.10.100.117



Reference: For procedure for Windows 2008, please refer to ExchangeServerPro.com.

Comments

Popular Posts