![]() ![]() Example 2: Get leases for specified addresses PS C:\> Get-DhcpServerv4Lease -ComputerName "" -IPAddress 10.10.10.10,10.20.20.20 This example gets all the active IPv4 address leases from the DHCPv4 scope 10.10.10.0. Examples Example 1: Get all active leases in a scope PS C:\> Get-DhcpServerv4Lease -ComputerName "" -ScopeId 10.10.10.0 If you specify the BadLeases parameter without the ScopeId parameter, all of the bad lease records from the DHCP server service are returned. If you specify the BadLeases and ScopeId parameters, all of the bad lease records for the specified scope are returned. If you specify the ClientId and ScopeId parameters, the leases for the specified ClientId parameter values in the specified scope are returned. If you specify the IPAddress parameter, the lease records for the specified IP address are returned. To get all kinds of leases including Active, Offered, Declined, and Expired, the AllLeases parameter must be specified. If you specify the ScopeId parameter, the active leases from the specified scope are returned. The Get-DhcpServerv4Lease cmdlet gets one or more lease records from the Dynamic Host Configuration Protocol (DHCP) server service. In this article Syntax Get-Dhcp Serverv4Lease ![]() Gets one or more lease records from the DHCP server service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |