You might have already googled other pages to help you on this. You even probably have found some PowerShell function like the one below [...] Still something makes this one different. Here are some tricks used here [...]
I'm usually lazy to remember which version of PowerShell (if any) was installed on each and every server in our site. Because each generation of OS has its own way to install/reinstall PowerShell, sometimes I need to see if it's anything there already and I need to perform a clean up.
This article originally started when I was actively involved in PowerShell development. Now I am mostly updating it on request of my blog readers (people like you). After a few dozen updates over the course of many years, it is now regarded as one of the top resources in the Powershell community.