Hi,
In my office we have multiple internet connections. The Alerting and monitoring already set when any of connection went down.
But sometime i need to know which Internet connection is currently working. to check which internet connection is currently working we can go to some IPCHECK sites and check the Static/Public IP Address of the Internet Connection but i want to write a simple script which can get an Static/Pubic IP Address if the internet for me.
The use of this script, you can use this in any GUI so show the current static address in any in-house WPF Powershell based custom tool. You can incorporate it in to a any user end client script and much more.
Download Link : http://gallery.technet.microsoft.com/scriptcenter/Get-StaticPublic-IP-09d7695c
Screenshot:
I have added the comments in the script so the script source file is quite self explanatory.
Download Link : http://gallery.technet.microsoft.com/scriptcenter/Get-StaticPublic-IP-09d7695c
Thanks
Aman Dhally
Hello Aman, I am getting an error message when trying to execute the script in Powershell (Windows 8 64-bit). The error is basically that since the script is not signed it won’t allow it.
Running as Admin I did Set-ExecutionPolicy -ExecutionPolicy Allsigned is there a different method of going about this?
Hi
My script are not signed, set your execution policy to unrestricted.
run powershell as admin and then run : Set-ExecutionPolicy unrestricted
t
aman
This blog is blank. I came here to ping the powershell scrip to get static IP address, but don’t see any script.
Hi,
The AllSigned means that all the scripts that you run must be signed.
There is a more restricted option that’ll work for you, instead of “Unrestricted” and it is the option “RemoteSigned” which means that if you connect to a PSSession and it downloads and runs scripts they must be signed.
So since you are running a script locally you can use “RemoteSigned”.