QuestionQ17

Implement and manage an on-premises and hybrid networking infrastructure

You have a server named DHCP1 running Windows Server with the DHCP Server role installed.

DHCP1 hosts an active IPv4 scope for the 192.168.15.0/24 subnet.

You have a CSV file named PrinterReservations.csv that contains these columns:

  • ClientId
  • ScopeId
  • IPAddress
  • MacAddress

All IP addresses in PrinterReservations.csv are inside the scope range and are presently available.

You need to create DHCP reservations for 20 printers by using PrinterReservations.csv. The solution must minimize administrative effort.

Which PowerShell command should you run?

Explanation

Add-DhcpServerv4Reservation creates IPv4 reservations and supports pipeline input by property name for required reservation fields such as ScopeId, IPAddress, and ClientId. Piping the CSV rows to this cmdlet creates all reservations in one command. Set-DhcpServerv4Reservation changes existing reservations, while exclusions and MAC filters do not create reservations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!