I need to programmatically enable DHCP. I’ve found a MSDN article on how to
do this on 9X, but can’t find anything show how to do this on NT, 2K. Any
article ID’s, links, code snippets would be appreciated.
Thanks,
Adam
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
There’s a script in the win2k resource kit called enabledhcp that shows one
way to do this for both local or remote machines using COM/WMI.
-----Original Message-----
From: Adam Peterson [mailto:xxxxx@efficient.com]
Sent: Thursday, December 28, 2000 12:36 PM
To: NT Developers Interest List
Subject: [ntdev] How to programmatically enable DHCP on NT, 2K?
I need to programmatically enable DHCP. I’ve found a MSDN article on how to
do this on 9X, but can’t find anything show how to do this on NT, 2K. Any
article ID’s, links, code snippets would be appreciated.
Thanks,
Adam
You are currently subscribed to ntdev as: xxxxx@timesn.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
There is a WMI solution for 1) changing from static to dhcp and 2) dhcp to
static IP addresses programmatically or changing any other tcp/ip property
on NT 4.0 SP4 or higher and win2k or higher. The interface is exposed by a
WMI class Win32_NetworkAdapterConfiguration through its methods (e.g.
EnableDHCP, EnableStatic…). The class exists in root\cimv2 namespace. On
NT 4.0 (SP4 or higher), you need to install wbemcore and wmisdk to enable
wmi support.
I have sample apps that show how to do this. Send me a note if you want.
-Eliyas
-----Original Message-----
From: Adam Peterson [mailto:xxxxx@efficient.com]
Sent: Thursday, December 28, 2000 10:36 AM
To: NT Developers Interest List
Subject: [ntdev] How to programmatically enable DHCP on NT, 2K?
I need to programmatically enable DHCP. I’ve found a MSDN article on how to
do this on 9X, but can’t find anything show how to do this on NT, 2K. Any
article ID’s, links, code snippets would be appreciated.
Thanks,
Adam
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com