PC Review


Reply
Thread Tools Rate Thread

Bulk import of DHCP resevations

 
 
Mark
Guest
Posts: n/a
 
      30th Jun 2004
Hi,

Does anyone know if Windows 2003 has a command line tool to bulk import DHCP
reservations similar to the dhcpcmd resource kit tool for NT4?

Thanks

Mark


 
Reply With Quote
 
 
 
 
Dean Wells [MVP]
Guest
Posts: n/a
 
      1st Jul 2004
Mark wrote:
> Hi,
>
> Does anyone know if Windows 2003 has a command line tool to bulk
> import DHCP reservations similar to the dhcpcmd resource kit tool for
> NT4?
>
> Thanks
>
> Mark


From memory alone so please test thoroughly;

To export the ENTIRE dhcp config, use -
netsh dhcp server dump >\MyDHCPconfig.dat

To import the ENTIRE dhcp server's configuration from a previous dump -
netsh exec \MyDHCPconfig.dat

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l


 
Reply With Quote
 
Mark
Guest
Posts: n/a
 
      1st Jul 2004
Thanks Dean,

I have used the netsh method of backup and restore before, but it wont help
me in this case.

I need to add a large number of reservations (more than 500) that do not
exist in the current dhcp server and I dont want to do them by hand. I
already have all the details in a csv file and was hoping to convert this to
a batch file.

Thanks

Mark


"Dean Wells [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Mark wrote:
> > Hi,
> >
> > Does anyone know if Windows 2003 has a command line tool to bulk
> > import DHCP reservations similar to the dhcpcmd resource kit tool for
> > NT4?
> >
> > Thanks
> >
> > Mark

>
> From memory alone so please test thoroughly;
>
> To export the ENTIRE dhcp config, use -
> netsh dhcp server dump >\MyDHCPconfig.dat
>
> To import the ENTIRE dhcp server's configuration from a previous dump -
> netsh exec \MyDHCPconfig.dat
>
> --
> Dean Wells [MVP / Directory Services]
> MSEtechnology
> [[ Please respond to the Newsgroup only regarding posts ]]
> R e m o v e t h e m a s k t o s e n d e m a i l
>
>



 
Reply With Quote
 
Dean Wells [MVP]
Guest
Posts: n/a
 
      1st Jul 2004
Mark wrote:
> Thanks Dean,
>
> I have used the netsh method of backup and restore before, but it
> wont help me in this case.
>
> I need to add a large number of reservations (more than 500) that do
> not exist in the current dhcp server and I dont want to do them by
> hand. I already have all the details in a csv file and was hoping to
> convert this to a batch file.
>
> Thanks
>
> Mark
>


That sounds do-able to me. If you post a sample of the CSV content, I'm
sure either myself or someone else here can construct netsh's DUMP
syntax from it.

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk PST Import Hobbes80 Microsoft Outlook Discussion 2 27th Oct 2008 02:20 AM
Bulk Import... second Try... Kiran Microsoft C# .NET 0 3rd Jun 2004 06:18 AM
Moving DHCP resevations to a new scope Toby Microsoft Windows 2000 Networking 2 5th Dec 2003 06:19 AM
DHCP and Bulk Reservations Topski Microsoft Windows 2000 Networking 1 29th Nov 2003 12:45 PM
Bulk Import JR Microsoft Windows 2000 Active Directory 1 4th Sep 2003 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:59 AM.