Is there an easy way in powershell 3.0 Windows 7 to get the local computer\'s ipv4 address into a variable?
(Get-WmiObject -Class Win32_NetworkAdapterConfiguration | where {$_.DefaultIPGateway -ne $null}).IPAddress | select-object -first 1