DHCP Netsh and PowerShell Administration

Like most Microsoft services today, DHCP can be fully managed through a wide array of PowerShell functions and via the Netsh command-line utility. To get a list of the available commands, follow these steps.

1. On a system with the DHCP server tools installed, open a PowerShell console session.

2. Type get-command *DHCP* and press Enter to get the list of all the DHCP-related functions or cmdlets.

For example, type get-DHCPServerv4Binding -Computername server10.companyabc.com and press Enter to get the IPv4 address bound to the DHCP server named server10.companyabc.com.

3. To learn how to use any PowerShell function or cmdlet (for example, the get-DHCPServerv4Binding function), in the PowerShell window ...

Get Windows Server® 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.