How To Resolve Short URLs With PowerShell
Have you stumbled upon a link that promises to take you to a whitepaper that will solve a nagging issue at work?
The trouble is, that innocent looking bit.ly address could point you anywhere. There’s just as much chance of that link turning you into a hero as it is to put your virus protection to good work. Or maybe you’ll just end up watching a cute cat video on YouTube.
Take the guess work out of short URLs with PowerShell, so that you can know for sure where that t.co link on Twitter is taking you.
In this snip, Josh will show you how to expand short URLs with PowerShell using Invoke-WebRequest. We’ll then bundle this operation up into a function for easy re-use whenever you need to double check a link.
Prerequisites include: A short URL to be expanded