Below is a very simple PowerShell command to export a list of IP address reservations in a DHCP server



# Which Subnet
$subnet = "10.1.15.0"

# Get Reservations for that specified subnet
$reservations = Get-DhcpServerv4Reservation -ScopeId $subnet

# Export reservations to CSV file
$reservations | Export-Csv -Path "C:\temp\10-1-15-reservations.csv" -NoTypeInformation


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *