Skip to content

Instantly share code, notes, and snippets.

@ig0r
Last active August 29, 2015 14:21
Show Gist options
  • Save ig0r/9ee35e781f75e0b44ac7 to your computer and use it in GitHub Desktop.
Save ig0r/9ee35e781f75e0b44ac7 to your computer and use it in GitHub Desktop.
Detecting IP address on Windows 2008 R2 64-bit on SoftLayer
$address = (gwmi Win32_NetworkAdapterConfiguration | ? { $_.Description -eq "Citrix PV Ethernet Adapter #0"} | ? { $_.IPAddress}).ipaddress[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment