Difference between revisions of "Get-NetIPAddress"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "``` Get-NetIPAddress | Where-Object {$_.AddressState -eq "Preferred" -and $_.IPAddress -like "10*"} ```")
 
 
Line 1: Line 1:
 +
```
 +
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*"}
 
  Get-NetIPAddress | Where-Object {$_.AddressState -eq "Preferred" -and $_.IPAddress -like "10*"}
 
```
 
```

Latest revision as of 23:36, 23 May 2023

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*"}