Data missing when Select-Object in use
Posted: 2022-Jul-03, 9:36 am
Why some data missing in output via Select-Object
compare to output without Select-Object
Just notice if you want to test it, you have to perform prior, to get record to your DNS cache
Code: Select all
powershell "Get-DnsClientCache -Entry *whitehouse.org | select-object -property Entry,RecordName,RecordType,Status,Selection,TimeToLive,DataLenght,Data"
Entry : whitehouse.org
RecordName :
RecordType :
Status : 0
Selection :
TimeToLive : 8858
DataLenght :
Data : 158.69.60.9
Code: Select all
powershell "Get-DnsClientCache -Entry *whitehouse.org"
Entry RecordName Record Status Section TimeTo Data Dat
Type Live Length a
----- ---------- ------ ------ ------- ------ ------ ---
whitehouse.org whitehouse.org A Success Answer 8811 4 158
Code: Select all
ping whitehouse.org