8
0
Skriptentwickung/test/ipconfig.ps1
2024-01-24 16:42:38 +01:00

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 }