Friday, August 1, 2008

So, how do you uninstall Windows PowerShell v1.0?

This was a long-awaited post as I have been concentrating more on disaster recovery stuff for SQL Server

If you guys wanted to install PowerShell v2.0 CTP, the first thing you need to do is uninstall v1.0. Apparently, though, you won't find any of those usual uninstall process like using the Add/Remove Programs console or the Uninstall Windows PowerShell from your Program Files. Have no fear. You can always use your registry. Simply look for the UninstallCommand key from HKLM\Software\Microsoft\Updates\Windows PowerShell 1.0 The path would really much depend on your operating system's setup like what your service pack you are currently running. In my case, I am running Windows XP Service Pack 3 so the so the registry key for me would be HKLM\Software\Microsoft\Updates\Windows PowerShell 1.0\SP3\KB926139-v2 Run the Value Data from the UninstallCommand key to uninstall Windows PowerShell v1.0. Once you're done, you can now install v2.0. You'll be surprised that it now creates an entry in the Add/Remove Programs console. Remember, this is still in CTP so be careful not to deploy your scripts in production until its released or just bite the bullet

4 comments:

Anonymous said...

This is great info IF you dont erase all that crap left by Windows in the Windows folder as I do. If you do then running the command manually is pointless.

Edwin Sarmiento said...

Thanks for pointing that out as well. Its really great to learn from other people's experiences.

Thanks for visiting my blog. I do hope it is of value to you

Ricky said...

If could not remove the version as well, you can just remove the powershell node and install the new version.

Ricky said...

If could not remove the version as well, you can just remove the powershell node and install the new version.

Google