Skip to content

Microsoft Windows PowerShell – Get DHCP IPv4 Scope Details

The Windows PowerShell cmdlet below will query a remote Dynamic Host Configuration Protocol (DHCP) server and provide the lease duration of each IPv4 scope.

Get-DhcpServerv4Scope -ComputerName HOSTNAME | Select ScopeID, LeaseDuration

Published inAutomationDynamic Host Configuration ProtocolMicrosoft Windows PowerShellMicrosoft Windows Server 2012Microsoft Windows Server 2012 R2Microsoft Windows Server 2012 R2 CoreMicrosoft Windows Server 2016NetworkScripting

Comments are closed.