Skip to main content

bizarre windows server DHCP scripting question

More
14 years 10 months ago #33248 by floppyraid
Greetings,

I want to know if this is possible:

I have a Windows 2003 Server, I have multiple DHCP scopes for various subnets and vlans I have. But I want to be able to copy all of the DHCP MAC address reservations from one scope to another scope on the fly.

In other words, when I add a DHCP reservation, I dont want to have to do it in multiple scopes, instead, I would like to make the changes to one scopes reservations, and then run a script that will mirror all of the data from one scope to another scope.

Is this possible? Can you point me in the direction of what I would need to use to do this? (would I need to use powershell or can I do this though a simple batchfile, or would I need some other cli utility?)

thanks ahead of time :)
More
14 years 10 months ago #33249 by floppyraid
Replied by floppyraid on topic update
the netsh command will probably not do what i want it to do.

doing an export with:

netsh dhcp server export c:\temp\test ((SCOPEIP))

wouldnt do me any good because i dont want the subsequent imported reservations to maintain the same IP address (since they would be 'imported' into a different scope)

also the netsh command doesnt just dump raw flat text information. it dumps rather cryptic information like:

N P I 8 E 8 E 0 9 , C o m p L a b H P 4 0 5 0 L a s e r ÿÿÿÿÿÿÿqw
A„ÿÿÿ


etc.


any pointers in any possible right directions would be appreciated
Time to create page: 0.113 seconds