Could you please try -match instead of -contains and see if this will work.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Get-DhcpServerv4Lease -ScopeId 10.40.0.0 | Where-Object ClientId -Contains "0"
Why it return 0 values? I have hundres of Mac Addresses which contain zero "0", no matter if I press "[asterisk]0[asterisk]" or anything else, contain return null output.
I don't understand even though I've read so many examples...
How to search through results?
Answer accepted by question author
Could you please try -match instead of -contains and see if this will work.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Thank you, thank you, thank you!