[THIN] Re: OT:change IP address remotely

  • From: "Minero, Hector B CIV K55" <hector.minero@xxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2006 11:17:37 -0400

I found that a combination of psexec and netsh does the job:
 
psexec pcname netsh interface ip set address name="local
 area connection" static 172.19.20.57 255.255.0.0 172.19.20.1 1
 
 
 
_________________________________
Hector Minero
NSWCDD Code K55
Ph: (540) 653-8859
Fax:(540) 653-8575

        -----Original Message-----
        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of George Wasgatt
        Sent: Wednesday, April 12, 2006 10:13 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: OT:change IP address remotely
        
        

        You can use a 2nd NETSH command to set the DNS address (WINS
too).

         

        netsh interface ip set dns name="Local Area Connection" static
192.168.101.9

         

        
  _____  


        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Anthony Green
        Sent: Wednesday, April 12, 2006 9:29 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: OT:change IP address remotely

         

        This might work for ya

         

         

        'DEFINE NEW IP, NETMASK, GATEWAY AND DNS
<http://www.codecomments.com/archive299-2004-3-163655.html>  IF REQUIRED
        strIPAddress = Array(ipList(w))
        strSubnetMask = Array("255.255.255.0")
        strGateway = Array("123.456.111.1")
        strGatewayMetric = Array(1)
        strDNSservers = Array
<http://www.codecomments.com/archive299-2004-3-163655.html>
("157.23.23.5","111.222.333.444")
        
        On Error Resume Next
        'Change Gateway and Metric
        errGateways = objItem.SetGateways(strGateway, strGatewaymetric)
        
        'Change IP Address and set NetMask
        (script hangs here--> ) errEnable =
objItem.EnableStatic(strIPAddress, strSubnetMask)
        If errEnable = 0 Then
        WScript.Echo "The IP address has been changed."
        Else
        WScript.Echo "The IP address could not be changed."
        End If

         

        
  _____  


        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Rota, Brian
        Sent: 12 April 2006 13:36
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: OT:change IP address remotely

        I have used this in the past.

         

        http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

         

        Brian Rota,
        MTM Technologies, Inc. (formerly NEXL, Inc.) 
        Sr. Network Engineer,MCSE,CCEA

        Tel. 978.538.3000

        Cell 978.886.8127

        
  _____  


        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Minero, Hector B CIV K55
        Sent: Wednesday, April 12, 2006 6:49 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] OT:change IP address remotely

         

        Hi all, we will change our entire network IP addresses in the
coming months.   I think I've got almost everything figured out.

        We have about 400 PCs (Win2k Prof) and we'd like to change the
IP address, subnet, gateway and DNS servers properties remotely.   They
all use static addresses. I've been looking for a tool that would allow
me to do this, but I haven't been able to find anything.

        I am familiar with the "netsh" command, but I am sure someone in
the list has already dealt with this situation and knows some other way.

         

        Thanks,

        _________________________________

        Hector Minero

        NSWCDD Code K55

        Ph: (540) 653-8859

        Fax:(540) 653-8575

         

Other related posts: