Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-26
7
Medium Priority
?
183 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
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

971 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