Import DHCP reservations from a CSV file with PowerShell

A simple PowerShell script that demonstrates importing DHCP reservations data from a csv text file. The script takes scope name and path to data file as imput parameters and adds reservations to the specified scope using Add-DHCPServer4Reservation cmdlet. Data file must include

 
 
 
 
 
5 Star
(2)
5,847 times
Add to favorites
Servers
3/28/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • what not work thos script?
    3 Posts | Last post June 21, 2019
    • On server 2012 R2 csv is formated: 
      Description,IP address,Hostname,MAC address 
      server,192.168.1.7,WIN-0K2K,00-0c-29-6d-f7-42
      
      no errors, no add reservations
      more hint or e.g. please
      
      
    • Use Get-DhcpServerv4Scope to find your scope name and enter it as your first parameter. Your .csv file looks fine. You do need to have the separators in the Mac Address, either ":" or "-" for the script to read in correctly. Run the script in a powershell window as Administrator.
    • I Had the same issue as mdvorak72 but solved it by running Powershell as an admin as instructed.
      Sometimes all it takes is following the instructions ;)