I have many PowerShell scripts and functions lying around, some are preloaded in my profile, some I just use from time to time and can be found in PowerShell’s folder on one of my computers.
Every time I am faced with a computer task (or a whim) that takes more then 2 minutes to accomplish by hand – I turn to PowerShell (or VIM console for text manipulations, but that’s another story).
So, I decided to share these tiny-but-useful scripts and functions by launching a blog series named “Bag of toys”.
This little one-liner tells you your external IP address, the one exposed to the world, not the one you got from your ISP (which is much easier to find out, using IpConfig util).
(New-Object net.webclient).downloadstring("http://checkip.dyndns.com") -replace "[^\d\.]"
While this is quite self-explanatory to most PowerShell users, let’s just do a quick run-through to make sure we covered all the bases. So, from left to right: