For When You Can't Have The Real Thing
[ start | index | login ]
start > Windows > Server > 2012 > DHCP Reservations

DHCP Reservations

Created by dave. Last edited by dave, 9 years and 181 days ago. Viewed 2,346 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(2014-10-22)

Powershell:

PS C:> Add-DhcpServerv4Reservation -ScopeId 10.10.10.0 -IPAddress 10.10.10.8 -ClientId F0-DE-F1-7A-00-5E -Description "Reservation for Printer"

or create a .CSV file:

ScopeId,IPAddress,Name,ClientId,Description 
10.10.10.0,10.10.10.10,Computer1,1a-1b-1c-1d-1e-1f,Reserved for Computer1 
20.20.20.0,20.20.20.11,Computer2,2a-2b-2c-2d-2e-2f,Reserved for Computer2 
30.30.30.0,30.30.30.12,Computer3,3a-3b-3c-3d-3e-3f,Reserved for Computer3

....and feed it into powershell as so:

PS C:> Import-Csv –Path Reservations.csv | Add-DhcpServerv4Reservation -ComputerName dhcpserver.contoso.com

(>>Source)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt