locked
PowerShell window opens and closes immediately RRS feed

  • Question

  • Hi All,

    I had powershell 2.0 installed by default on my laptop and i tried to upgrade to 5.0(reason - i wanted to install vagrant and some Linux some boxes for learning purpose)

    now as i open my powershell console it just disappears immediately without any error

    I tried to repair .Net Framework, that didn't help either

    My laptop configurations are as below


    Windows 7 Home Basic
    Service Pack 1
    Windows Management Framework 5.1 (KB3191566)
    Microsoft .Net Framework 4 Extended 4.0.30319
    Microsoft .Net Framework 4 Client Profile 4.0.30319

    When i run the below command in cmd prompt i get

    C:\>wmic /namespace:\\root\cimv2 path win32_product where "name like '%%.NET%%'"
     get version
    Version
    4.0.30319
    4.0.30319

    if any of you have faced similar issues and resolved.. please help

    Thanks in advance

    Alex


    Alex

    Tuesday, November 6, 2018 7:33 AM

Answers

All replies

  • WMF 5.1 requires Microsoft .NET Framework 4.5 or above. You can install Microsoft .NET Framework 4.5 or above by following the instructions at Installing the .NET Framework.


    \_(ツ)_/

    • Marked as answer by Alex Rabbi Friday, November 9, 2018 11:50 AM
    Tuesday, November 6, 2018 7:37 AM
  • Hi Alex,

    Thanks for your question.

    I agree with Jrv.

    Microsoft document about Windows PowerShell System Requirements, Windows PowerShell 5.0 requires the full installation of Microsoft .NET Framework 4.5. Windows 8.1 and Windows Server 2012 R2 include Microsoft .NET Framework 4.5 by default.

    You will get more detailed information about it in the link below, you will also can download from it.

    https://docs.microsoft.com/en-us/powershell/scripting/setup/windows-powershell-system-requirements?view=powershell-6

    Best Regards,

    Lee


    Just do it.

    • Marked as answer by Alex Rabbi Friday, November 9, 2018 11:50 AM
    Wednesday, November 7, 2018 7:08 AM
  • thanks very much for all your help.

    i followed your steps and it worked


    Alex

    Thursday, November 8, 2018 6:26 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    Best Regards,

    Lee


    Just do it.

    • Marked as answer by Alex Rabbi Friday, November 9, 2018 11:50 AM
    • Unmarked as answer by Alex Rabbi Friday, November 9, 2018 11:50 AM
    Friday, November 9, 2018 9:21 AM