Unshortening a shortened URL with powershell....as of February 2025 anyway
There are a bunch of pages on the internet giving code to expand shortened URLs, but none of the ones I tried seem to work.
I suspect this might be because it’s changed over time….but this seems to work…atm!
((Invoke-WebRequest -UseBasicParsing –Uri 'https://bit.ly/3D0xStd').baseresponse).RequestMessage.RequestUri.AbsoluteUri
Correctly gives:
https://newsthump.com/2025/02/16/master-negotiator-donald-trump-to-end-ukraine-war-by-simply-giving-russia-everything-it-wants/
