Get-NetIPAddress

From UVOO Tech Wiki
Revision as of 23:36, 23 May 2023 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
powershell.exe -NonInteractive -NoProfile -Command '(Get-NetIPAddress | Where-Object {$_.InterfaceAlias -eq ((Get-NetAdapter -Physical | Get-NetAdapterStatistics | Sort-Object -Property SentBytes).Name[-1])}).IPAddress'
 Get-NetIPAddress | Where-Object {$_.AddressState -eq "Preferred" -and $_.IPAddress -like "10*"}