DHCP Netsh export Fails

  • Thread starter Thread starter Jen
  • Start date Start date
J

Jen

Im having the same issue as a previous post that was not answered(2003 Server)

Another admin had tested doing an netsh dhcp server export on one of our
dhcp servers. She then did an netsh dhcp import of the same data back to the
same server, as she was testing that the active leases would still be
available........(sigh)

Now that its time to export and move the scope data to another server when I
run netsh dhcp server export c:\dhcp all, I get an error "An attempt was made
to load a program with an incorrect format" and a c:\dhcp.txt file with only
one line "1K2W.

So it seems that something got hosed up doing the previous export or import.
Anyone know of a way to resolve this........?

Thanks,

Jen






See
http://www.microsoft.com/technet/co...-B6EB49F31B7E&dglist=&ptlist=&exp=&sloc=en-us
 
Microsoft may have hotfix for this issue. This link may help,

How to export/import DHCP scopes
http://www.howtonetworking.com/server/server.htm

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"Jen" <Jen@discussions.microsoft.com> wrote in message news:26E1069B-1A48-4CF2-92DA-B21CC8ED8688@microsoft.com...
Im having the same issue as a previous post that was not answered(2003 Server)

Another admin had tested doing an netsh dhcp server export on one of our
dhcp servers. She then did an netsh dhcp import of the same data back to the
same server, as she was testing that the active leases would still be
available........(sigh)

Now that its time to export and move the scope data to another server when I
run netsh dhcp server export c:\dhcp all, I get an error "An attempt was made
to load a program with an incorrect format" and a c:\dhcp.txt file with only
one line "1K2W.

So it seems that something got hosed up doing the previous export or import.
Anyone know of a way to resolve this........?

Thanks,

Jen






See
http://www.microsoft.com/technet/co...-B6EB49F31B7E&dglist=&ptlist=&exp=&sloc=en-us
 
Ive already put 2003 SP2 on this server to see if it would fix the problem.
The hotfix does not apply to SP2. The problem still exists.

"Robert L [MVP - Networking]" wrote:

> Microsoft may have hotfix for this issue. This link may help,
>
> How to export/import DHCP scopes
> http://www.howtonetworking.com/server/server.htm
>
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
> How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
> "Jen" <Jen@discussions.microsoft.com> wrote in message news:26E1069B-1A48-4CF2-92DA-B21CC8ED8688@microsoft.com...
> Im having the same issue as a previous post that was not answered(2003 Server)
>
> Another admin had tested doing an netsh dhcp server export on one of our
> dhcp servers. She then did an netsh dhcp import of the same data back to the
> same server, as she was testing that the active leases would still be
> available........(sigh)
>
> Now that its time to export and move the scope data to another server when I
> run netsh dhcp server export c:\dhcp all, I get an error "An attempt was made
> to load a program with an incorrect format" and a c:\dhcp.txt file with only
> one line "1K2W.
>
> So it seems that something got hosed up doing the previous export or import.
> Anyone know of a way to resolve this........?
>
> Thanks,
>
> Jen
>
>
>
>
>
>
> See
> http://www.microsoft.com/technet/co...-B6EB49F31B7E&dglist=&ptlist=&exp=&sloc=en-us
>
>
 
FYI, to anyone else having this issue:(from 2003 server to 2003 server)
Run a dhcp backup on first server, stop dhcp service.
Stop dhcp service on target server
Copy entire system32\dhcp folder from first server to target server.
Start service on target server.
This worked like a charm, and Im nuts for the time I spent trying to find a
fix for the export command. Leases started handing out immediately.

Due to all the tech notes that said you could only do this on nt4 and 2k I
was reluctant to try it, but it worked.
I did not copy the reg key as I had already configured the default dhcp
server options.

"Jen" wrote:

> Im having the same issue as a previous post that was not answered(2003 Server)
>
> Another admin had tested doing an netsh dhcp server export on one of our
> dhcp servers. She then did an netsh dhcp import of the same data back to the
> same server, as she was testing that the active leases would still be
> available........(sigh)
>
> Now that its time to export and move the scope data to another server when I
> run netsh dhcp server export c:\dhcp all, I get an error "An attempt was made
> to load a program with an incorrect format" and a c:\dhcp.txt file with only
> one line "1K2W.
>
> So it seems that something got hosed up doing the previous export or import.
> Anyone know of a way to resolve this........?
>
> Thanks,
>
> Jen
>
>
>
>
>
>
> See
> http://www.microsoft.com/technet/co...-B6EB49F31B7E&dglist=&ptlist=&exp=&sloc=en-us
>
>
 
Thank you for the feedback.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"Jen" <Jen@discussions.microsoft.com> wrote in message news:3D88F8A8-0ACB-431B-9225-19FCA7F6646C@microsoft.com...
FYI, to anyone else having this issue:(from 2003 server to 2003 server)
Run a dhcp backup on first server, stop dhcp service.
Stop dhcp service on target server
Copy entire system32\dhcp folder from first server to target server.
Start service on target server.
This worked like a charm, and Im nuts for the time I spent trying to find a
fix for the export command. Leases started handing out immediately.

Due to all the tech notes that said you could only do this on nt4 and 2k I
was reluctant to try it, but it worked.
I did not copy the reg key as I had already configured the default dhcp
server options.

"Jen" wrote:

> Im having the same issue as a previous post that was not answered(2003 Server)
>
> Another admin had tested doing an netsh dhcp server export on one of our
> dhcp servers. She then did an netsh dhcp import of the same data back to the
> same server, as she was testing that the active leases would still be
> available........(sigh)
>
> Now that its time to export and move the scope data to another server when I
> run netsh dhcp server export c:\dhcp all, I get an error "An attempt was made
> to load a program with an incorrect format" and a c:\dhcp.txt file with only
> one line "1K2W.
>
> So it seems that something got hosed up doing the previous export or import.
> Anyone know of a way to resolve this........?
>
> Thanks,
>
> Jen
>
>
>
>
>
>
> See
> http://www.microsoft.com/technet/co...-B6EB49F31B7E&dglist=&ptlist=&exp=&sloc=en-us
>
>
 
Back
Top