Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created December 14, 2015 22:13
Show Gist options
  • Save jeffgreenca/42a858b45b9011f156b3 to your computer and use it in GitHub Desktop.
Save jeffgreenca/42a858b45b9011f156b3 to your computer and use it in GitHub Desktop.
#given source.csv
#mac,ip
#aabbccddeef0,172.16.1.20
#aabbccddeef1,172.16.1.21
Import-CSV source.csv | % { Add-DhcpServerv4Reservation -Scope 172.16.1.0 -ClientID $_.mac -IPAddress $_.ip }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment