[1118] in resnet

home help back first fref pref prev next nref lref last post

Re: Auto Configuration

daemon@ATHENA.MIT.EDU (Jeremy Mlazovsky)
Thu Apr 4 15:28:23 2002

MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Message-ID:  <OFB5DE1CBB.67F69481-ON85256B91.006F0818-85256B91.006F5A5B@udayton.edu>
Date:         Thu, 4 Apr 2002 15:16:17 -0500
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Jeremy Mlazovsky <Jeremy.Mlazovsky@NOTES.UDAYTON.EDU>
To: RESNET-L@listserv.nd.edu

There are a number of different ways to do this.

On Novell's CoolSolutions website (http://www.novell.com/coolsolutions/)
they've described a number of ways of accomplishing htis.

http://www.novell.com/coolsolutions/zenworks/trenches/tr_staticip_to_dhcp2_zw.html
In Win9x:

    Dan Poulsen


 Here's an addition for your 'From the trenches' on converting workstations to DHCP. This VBS
 script will work on Win95/98 workstations. You must install the Windows Scripting Host (available
 from Microsoft) on the Win95 platform to use it though. WSH comes with Win98.


 This is a modified version of a script Microsoft has in their support pages. In addition to
 converting to DHCP, this script will disable DNS, switch the WINS button to "Use DHCP for WINS
 resolution", and delete any gateways the user may have entered.


 Dim WSHShell, NList, N, IPAddress, IPMask, IPValue, RegLoc1, RegLoc2, NodeType
 Dim Domain, EnableDNS, HostName, NameServer, SearchList, NameServer1, Default Gateway
 Set WSHShell = WScript.CreateObject("WScript.Shell")
 NList = array("0000","0001","0002","0003","0004","0005","0006", _ "0007","0008","0009","0010")
 On Error Resume Next
 RegLoc1 = "HKLM\System\CurrentControlSet\Services\Class\NetTrans\"
 For Each N In NList
 IPValue = "" 'Resets variable
 IPAddress = RegLoc1 & N & "\IPAddress"
 IPMask = RegLoc1 & N & "\IPMask"
 NodeType = RegLoc1 & N & "\NodeType"
 NameServer1 = RegLoc1 & N & "\NameServer1"
 DefaultGateway = RegLoc1 & N & "\DefaultGateway"
 IPValue = WSHShell.RegRead(IPAddress)
 If (IPValue <> "") and (IPValue <> "0.0.0.0") then
 WSHShell.RegWrite IPAddress,"0.0.0.0"
 WSHShell.RegWrite IPMASK,"0.0.0.0"
 end If
 WSHShell.RegDelete NodeType
 WSHShell.RegDelete NameServer1
 WSHShell.RegDelete DefaultGateway
 Next
 RegLoc2 = "HKLM\System\CurrentControlSet\Services\VxD\MSTCP\"
 Domain = RegLoc2 & "\Domain"
 EnableDNS = RegLoc2 & "\EnableDNS"
 HostName = RegLoc2 & "\HostName"
 NameServer = RegLoc2 & "\NameServer"
 SearchList = RegLoc2 & "\SearchList"
 WSHShell.RegDelete Domain
 WSHShell.RegDelete HostName
 WSHShell.RegDelete NameServer
 WSHShell.RegDelete SearchList
 WSHShell.RegWrite EnableDNS,"0"
 WSHShell.Popup "Your internet settings have been updated. Please reboot."
 WScript.Quit ' Tells the script to stop and exit.




You can go to the following page for some tips on how to do it on NT
systems (and I assume Win2k and XP as well).
http://www.novell.com/coolsolutions/zenworks/trenches/tr_dhcp_switch_nt_zw.html

Jeremy Mlazovsky
PC/Network Specialist
UD IT
University of Dayton
Office: 937-229-4019



                      "King, Michael"
                      <MKing@BRIDGEW.ED        To:       RESNET-L@listserv.nd.edu
                      U>                       cc:
                      Sent by: Resnet          Subject:  Auto Configuration
                      Forum
                      <RESNET-L@listser
                      v.nd.edu>


                      04/04/2002 01:51
                      PM
                      Please respond to
                      Resnet Forum






For the previous two years, we have had an in-house programmer develop an
application to auto configure Win9X to use DHCP.  It would make sure the
computers used DHCP, and remove any DNS, WINS, and gateway information that
was place in there, in addition to providing a unique hostname.

Shortly after we lost the services of this programmer, Win2000, and now XP
have hit the market.

Would anyone know where we could either

Obtain a freeware application to make these changes.
Obtain source code to an application that will make these changes.

It would have to be able to handle 2000 and XP.  If it could also handle
95/98/ME/NT4.0 that would be great, but not necessary.

We already have an installer program that can trip the program off as part
of a self running CD, but the actual configuration changes we do not have.

Thanks in advance.

Michael King
Telecommunications Support Specialist
Bridgewater State College
(508) 531-2528
(508) 531-4528 Fax
mking@bridgew.edu

___________________________________________________
You are subscribed to the ResNet-L mailing list.

To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________

___________________________________________________
You are subscribed to the ResNet-L mailing list.

To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________

home help back first fref pref prev next nref lref last post