从if等于description获取ip地址

时间:2018-01-31 08:41:38

标签: powershell

我正在尝试编写一个脚本来检查DHCP范围内的所有IP地址,并且只给出了具有特定描述的地址,任何人都可以帮我解决这个问题。

当前代码:

get-dhcpserverv4reservation | select -clientid - description

1 个答案:

答案 0 :(得分:1)

Get-DhcpServerv4Reservation |
    Select-Object ClientID, Description |
    Where-Object Description -eq "this description, here"
相关问题