Solved

How to configure a network card to use DHCP server via registry in Win98 WinME

Posted on 2004-08-26
7
180 Views
Last Modified: 2010-05-02
How can I configure a network card to use DHCP server via registry in Win98, WinMe?
What are the things that should be modified and to look for?
Please help!!!!

Thanks!
0
Comment
Question by:preddibear
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
7 Comments
 
LVL 3

Expert Comment

by:nichia
ID: 11905005
Do you mean in code, or manually?

You can manually set this in XP (assuming Me/98 is similar)
Control Panel->Newwork Connections->Local Area Connection->Properties (button)->Internet Protocol TCP/IP (properties button)->Obtain an IP address automatically (option button).

Hope it helps!
0
 
LVL 3

Expert Comment

by:nichia
ID: 11943688
This may be helpful:

---------------------------------------------------
"WMI Tasks for Scripts and Applications"

Search for enableDHCP (the example is halfway down the page)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_tasks_for_scripts_and_applications.asp

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
    ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
 
For Each objNetAdapter In colNetAdapters
    errEnable = objNetAdapter.EnableDHCP()
Next
-----------------------------------------------------------

0
 
LVL 3

Expert Comment

by:nichia
ID: 12071711
Hello?
0
 

Author Comment

by:preddibear
ID: 12461147
I've already found a way...

Check the network adapter first located at
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Net\ 000x
where x would be the adapter number to be modified in
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Nettrans

set IPAddress and IPMask keys to 0.0.0.0,delete any default gateway key and reboot.
then ip renew and release and it works.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12689638
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question