Powershell script to get external IP address

7/02/2014 , 0 Comments


Below is the Powershell which may come in handy at time where you don't have Static IP

$ExternalIPAddress = (Invoke-WebRequest -Uri 'http://checkip.dyndns.com').Content -replace '[^\d\.]'
$ExternalIPaddress # This will display the external IP address assigned to themachine


Pretty Cool aha!!



0 comments :