JoelE
JoelE

Reputation: 309

Get ip address from if equal to description

I am trying to write a script that checks all ip addresses in DHCP scope, and gives me only the addresses that have a certain description, can anyone help me out with this.

Current code:

get-dhcpserverv4reservation | select -clientid - description

Upvotes: 0

Views: 267

Answers (1)

gvee
gvee

Reputation: 17161

Get-DhcpServerv4Reservation |
    Select-Object ClientID, Description |
    Where-Object Description -eq "this description, here"

Upvotes: 1

Related Questions