windows-powershell-docs icon indicating copy to clipboard operation
windows-powershell-docs copied to clipboard

Add reservations from a file

Open BorisESRA opened this issue 2 years ago • 0 comments

[Enter feedback here] Hi, I'm a newbie trying to add reservations from a file.

I've tried this, on the computer wich runs the DHCP server service: c:>Import-Csv -Path "Reservations.csv" | Add-DhcpServerv4Reservation -ComputerName "dhcpserver.contoso.com"

My csv file is set up as required, 25 lines, each line for each reservation. ScopeId, IPAddress, Name, ClientId, Description 192.168.30.0,192.168.30.1,Eisenstein-01.esraparis.lan,9c-76-0e-43-4d-94,Ordi Eisen 1 etc

image

What am I doing wrong? Thanks for the help.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BorisESRA avatar Sep 15 '22 13:09 BorisESRA