BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
| |
 |
 |
 |
 |
 |
| Uninstalling Windows PowerShell 1.0 Workaround |
 |
|
|
By: Don Hite
Posted On: 4/10/2007
This article was Previously posted on Don Hite's Blog
Recently I read Greg Ramsey's article entitled "Running PowerShell in Server 2003?" in which he stated: “Basically, Windows PowerShell is released as an update to Windows, so installing Windows Server 2003 SP2 will remove the uninstaller for the PowerShell update.” So I decided to find a workaround for the issue and post it for others to use.
I searched the Uninstall registry on my workstation and found the PowerShell uninstall command registry key C:\\Windows\\$NtUninstallKb926139$\\Spuninst\\Spuninst.Exe located here:
HKLM\Software\Microsoft\Updates\Windows PowerShell 1.0\Sp3\Kb926139
Because as Greg noted the uninstaller for this is not listed in the Add and Remove programs you cannot remove the application with the uninstaller however you can still remove the application without the need to use the uninstaller by taking the UninstallCommand and remove the registries doubled back slashes and uninstall it using the command line as:
C:\Windows\$NtUninstallKB926139$\Spuninst\Spuninst.Exe
If you have installed Windows PowerShell (KB926139) for Windows Server 2003 Service Pack 1 or for Windows XP Service Pack 2 you can use this VBS script as opposed to using the command prompt to start the uninstall process.
VBS Script:
Set objShell = CreateObject("WScript.Shell") objShell.Run "C:\Windows\$NtUninstallKB926139$\spuninst\spuninst.exe" WScript.Quit
|
 |
 |
 |
|
|