none
cannot uninstall windows powershell in order to upgrade from win2k3 ent x64 to win2k8 ent x64 RRS feed

  • Question

  • I can't seem to uninstall windows powershell in order to upgrade my windows 2003 enterprise x64 server to win2k8 ent x64.  It says...

    You must make the following changes before upgrading Windows
    Uninstall the following programs:

    •  
      • Windows PowerShell
    • I read if I uninstall kb926139 I will in essence uninstall powershell, however I'm being told in add/remove programs that the program cannot be removed, nor is windows powershell displayed as an installed application.

     

    Thursday, March 25, 2010 6:11 PM

Answers

  • Hi,

     

    I suggest uninstalling SP2 first and then trying to uninstall Powershell.

     

    If the issue persists, you may consider performing an In-Place Upgrade of Windows Server 2003 and then upgrade to Windows Server 2008.

     

    How to Perform an In-Place Upgrade of Windows Server 2003

    http://support.microsoft.com/?id=816579

     

     

    Before doing that, please backup important data on your system first.

     

    Hope it helps.

     

    Tim Quan - MSFT

    Monday, March 29, 2010 6:44 AM
    Moderator

All replies

  • Hi,

     

    Please refer to the following articles to uninstall PowerShell in Windows Server 2003.

     

    http://support.microsoft.com/kb/926140

    http://support.microsoft.com/kb/926139

     

    Hope it helps.

     

    Tim Quan - MSFT

     

    Friday, March 26, 2010 3:36 AM
    Moderator
  • Yes, I have viewed both of these articles with no success.  I first looked to add/remove prog.  to uninstall powershell, however there is no listing of it on my server.  I then looked for the following kb's:

  • Hotfix for Windows Server 2003 (KB926139)
  • Hotfix for Windows Server 2003 (KB926140)
  • Hotfix for Windows Server 2003 (KB926141)
  • KB926139 exists, however it states " this update cannot be removed".

    I've also read this from the hyper link provided by you:

    "If you install Windows PowerShell 1.0 on Windows Server 2003 with Service Pack 1, and then you upgrade to Windows Server 2003 with Service Pack 2, you cannot uninstall Windows PowerShell 1.0. For more information, see the "Uninstall Windows PowerShell" section."

    The server is currently on SP2 and I can't be certain in what order Powershell was installed.  How am I going to be able to upgrade this server in it's current state?

    Thanks,
    Stephen

     

Friday, March 26, 2010 5:31 PM
  • Hi,

     

    I suggest uninstalling SP2 first and then trying to uninstall Powershell.

     

    If the issue persists, you may consider performing an In-Place Upgrade of Windows Server 2003 and then upgrade to Windows Server 2008.

     

    How to Perform an In-Place Upgrade of Windows Server 2003

    http://support.microsoft.com/?id=816579

     

     

    Before doing that, please backup important data on your system first.

     

    Hope it helps.

     

    Tim Quan - MSFT

    Monday, March 29, 2010 6:44 AM
    Moderator
  • I had a similar problem I was unable to upgrade from server 2003 sp2 to server 2008 r2, tried all of the steps people had suggested but to no avail, so  in the end i took the following brutal steps, please note that you do this at your own risk ...

    a backup

    did a full backup of the registry (just in case)

    searched through the registry removing all powershell entries

    backup c:\windows\system32\windowspowershell directory to an external location usb key etc , (just in case)

    delete c:\windows\system32\windowspowershell

    then run setup again ..

     

    • Proposed as answer by Farr Rathore Friday, February 18, 2011 12:02 PM
    • Unproposed as answer by Farr Rathore Friday, February 18, 2011 12:03 PM
    • Proposed as answer by Zellos89 Wednesday, January 30, 2019 2:02 PM
    Friday, February 18, 2011 12:01 PM
  • Thanks Farr. Your fix works fine for me :)
    Tuesday, December 4, 2012 11:48 PM
  • I think an easier way of handling all of this is going to Control Panel -> Add/Remove Programs -> Click the "Show Updates" Tickbox -> Locate "windows management framework core" and uninstall that.

    PowerShell 2.0 is listed as Windows Management Framework Core.

    • Proposed as answer by Daniel Sarfati Thursday, June 27, 2013 2:29 AM
    Thursday, June 27, 2013 2:29 AM
  • Perfect, this worked for me :)
    Thursday, March 20, 2014 6:20 AM
  • I think an easier way of handling all of this is going to Control Panel -> Add/Remove Programs -> Click the "Show Updates" Tickbox -> Locate "windows management framework core" and uninstall that.

    PowerShell 2.0 is listed as Windows Management Framework Core.

    This was the answer that solved the problem for me.  Thanks, Daniel

    Wednesday, October 8, 2014 8:03 PM
  • Just rename the folder PowerShell:

    Server 2003 32 bit: %windir%\System32\WindowsPowerShell
    Server 2003 64 bit: %windir%\Syswow64\WindowsPowerShell

    To any name. Run the install again.

    Credit to William Faulkner:

    Server 2003 to 2008 Upgrade: Fix PowerShell compatibility error

    • Proposed as answer by boelter Wednesday, February 4, 2015 3:46 PM
    Sunday, October 19, 2014 11:10 PM
  • Uninstall both in this order:

    Control Panel -> Add/Remove Programs -> "Service Pack 2"

    Control Panel -> Add/Remove Programs -> Click the "Show Updates" Tickbox -> Locate "windows management framework core"

    And Upgrade W2003 to w2008 is running

    Tuesday, December 23, 2014 10:01 AM
  • This worked for me... just renamed the folders and the upgrade proceeded.
    Saturday, May 2, 2015 4:43 AM
  • It works really. I tried to remove Power Shell 1.0 using many KB of Microsoft but no success.

    I removed Windows Management Framework Core and it worked. There is no reboot requirement

    Thanks for your solution



    Tuesday, June 9, 2015 11:58 AM
  • I was able to get it going by renaming the power shell directory located under c:\windows\system32
    • Proposed as answer by spellbinder777 Monday, January 25, 2016 11:44 PM
    Wednesday, June 17, 2015 8:41 PM
  • I had powershell folder named " Windowspowershell " under system32 not  " Powershell " , so renamed it, worked great!

    Monday, March 21, 2016 6:40 AM
  • Didnt work for me
    Saturday, January 6, 2018 3:24 PM
  • Worked for me, thanks
    Saturday, January 6, 2018 3:25 PM