James N

My feedback

  1. 2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  General Feedback » Bug  ·  Flag idea as inappropriate…  ·  Admin →
    James N supported this idea  · 
    James N commented  · 

    I can confirm this is true. As discussed on https://github.com/MicrosoftDocs/windows-powershell-docs/issues/56#issuecomment-500798123 although it was closed there due to it not being the right place to report.

    How to replicate this problem: simply pick any IP address you know has a lease but is not a reservation:
    ----------------------------------

    H:\
    # Get-DhcpServerv4Reservation -ComputerName $dhcpserver -IPAddress 10.104.53.22 | fl IPAddress,ScopeID,AddressState

    IPAddress : 10.104.53.22
    ScopeId : 10.104.53.0
    AddressState : InactiveReservation

    H:\
    # Get-DhcpServerv4Reservation -ComputerName $dhcpserver -ScopeId 10.104.53.0 | ?{ $_.IPAddress -eq "10.104.53.22" }

    H:\
    #

    ----------------------------------
    Note that the first command incorrectly outputs the entry as if it was a reservation. The second command correctly outputs nothing, because there is no such reservation in this scope.

  2. 2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell » Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    James N commented  · 

    Bug still present 4 years later.

Feedback and Knowledge Base