2 lines
154 B
PowerShell
2 lines
154 B
PowerShell
$ipconfig = ipconfig | select-string "IPv4" | select-object -first 1
|
|
([regex]"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b").matches($ipconfig) | % { $_.value } |