Windows DHCP Server XML import file import Issue for multiple Scopes

SOUMEN GHOSH 0 Reputation points
2024-11-06T10:48:00.1733333+00:00

In our estate we have build two windows 2022 server under existing internal domain and install DHCP role in both of these boxes. Post that, we have configured DHCP failover using these two servers. We have prepared XML file of total 7 scopes for testing the import, but unfortunately while using PowerShell for importing the scopes it can only able to import first 4 scopes and post that it is not importing the rest of the scopes and command is not throwing any errors/warnings as well. Any advise or help would be highly appreciable. Thank you in advance.

Powershell Command:

Import-DhcpServer -ComputerName "Server.xx.net" -File "C:\Users\ghos\Desktop\xml_24-10-2024\helper\Testoption.xml" -BackupPath "C:\dhcpbackup" -verbose

Output:

VERBOSE: Dhcp Server database has been backed up at C:\dhcpbackup\ on Server.xx.net.

VERBOSE: Importing configuration on server Server.xx.net from file

C:\Users\ghos\Desktop\xml_24-10-2024\helper\Testoption.xml.

VERBOSE: Importing classes on server...

VERBOSE: Deleting server wide policies...

VERBOSE: Deleting server wide option values...

VERBOSE: Deleting link layer filters...

VERBOSE: Importing link layer filters...

VERBOSE: Importing scope X.X.X.X on server Server.xx.net...

VERBOSE: Importing exclusion ranges to scope X.X.X.X...

VERBOSE: Importing option values for scope X.X.X.X...

VERBOSE: Importing reservations to scope X.X.X.X. This operation may take some time.

VERBOSE: Importing scope X.X.X.Y on server Server.xx.net...

VERBOSE: Importing exclusion ranges to scope X.X.X.Y...

VERBOSE: Importing option values for scope X.X.X.Y...

VERBOSE: Importing reservations to scope X.X.X.Y. This operation may take some time.

VERBOSE: Importing scope X.X.Y.Y on server Server.xx.net...

VERBOSE: Importing exclusion ranges to scope X.X.Y.Y...

VERBOSE: Importing option values for scope X.X.Y.Y...

VERBOSE: Importing reservations to scope X.X.Y.Y. This operation may take some time.

VERBOSE: Importing scope X.Y.Y.Y on server Server.xx.net...

VERBOSE: Importing exclusion ranges to scope X.Y.Y.Y...

VERBOSE: Importing option values for scope X.Y.Y.Y...

VERBOSE: Importing reservations to scope X.Y.Y.Y. This operation may take some time.

VERBOSE: Import operation on server Server.xx.net completed.

PS C:\Windows\system32>


Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,044 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 7,675 Reputation points Microsoft Vendor
    2024-11-12T07:17:34.77+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    To further resolve this issue, please kindly try below steps:

    1.Check if the XML File format is correct or not.

    2.Check if the account you used to execute PowerShell command has the necessary permission.

    3.Meanwhile you can try to export DHCP scope by Netsh utility and import to the server.

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.