Newsgroups: microsoft.public.windows.server.scripting
From: Greg H <gphal...@gmail.com>
Date: Mon, 23 Nov 2009 06:16:02 -0800 (PST)
Local: Mon, Nov 23 2009 2:16 pm
Subject: Re: Script to Import Reservations in DHCP Works on Server 2003 but not on Server 2008
Thanks for the response. That scenario doesn't apply in our
situation. We don't have a database to import. We are moving from statically assigned IPs to DHCP (yeah, I know, its 2009 and we are using static IPs. Pretty funny. It's due to Security issues.) We have a spreadsheet of hundreds of IP addresses of computers that Thanks, Greg On Nov 21, 12:23 pm, RemyMaza <remym...@gmail.com> wrote: > On Nov 20, 7:57 am, Greg H <gphal...@gmail.com> wrote:
> > We need to import hundreds of DHCP reservations into our DHCP server > > Below is our script. Does anyone have one that works with 2008 or can > > Thanks. > > ---- > > ("Scripting.FileSystemObject") > > Set shell = Wscript.CreateObject("Wscript.Shell") > > Set ipList=fso.OpenTextFile("c:\ListFile.txt", 1, false) > > Do While not ipList.AtEndOfStream > > reservedip " & IP & " " & MAC, 0, True > > End If > > ---------------- > You should be able to simply export the DHCP database and import it > http://technet.microsoft.com/en-us/library/cc776587(WS.10).aspx > http://blogs.technet.com/networking/archive/2008/06/27/steps-to-move-... > Cheers, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||