locked
PowerShell error for installation SQL Server 2012 RTM Developer on Windows 7 X64 RRS feed

  • Question

  • I had a lot of grief with upgrading from 2008 R2 and PowerShell. Created a thread but doesn't seem to be promising to solve it, so de-installed,  and now I am installing from scratch 2012 . 

    And PowerShell again. I don't see any problem with that on Windows level

    =========================================

    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.

    PowerTab version 0.99.6.0 PowerShell TabExpansion Library
    Host: ConsoleHost
    PowerTab Enabled: True
    PS U:\> get-executionpolicy
    RemoteSigned
    PS U:\>

    =============================

    But installation

    TITLE: Microsoft SQL Server 2012  Setup
    ------------------------------

    The following error has occurred:

    Error while enabling Windows feature : MicrosoftWindowsPowerShell, Error Code : -2146498548 , Please try enabling Windows feature : MicrosoftWindowsPowerShell from Windows management tools and then run setup again. For more information on how to enable Windows features , see http://go.microsoft.com/fwlink/?linkid=227143

    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x681D636F%25401428%25401

    ------------------------------
    BUTTONS:

    OK
    ------------------------------

    =================================

    Detail.txt

    (01) 2012-04-13 12:11:18 Slp: Running Action: Install_PowerShell2_Cpu64_Action
    (01) 2012-04-13 12:11:18 Slp: Checkpoint: PREINSTALL_POWERSHELL2_CPU64_ACTION
    (01) 2012-04-13 12:11:18 Slp: Enabling OS feature :MicrosoftWindowsPowerShell,  Dism Command: Dism /Online /Enable-Feature /FeatureName:MicrosoftWindowsPowerShell  /NoRestart  /Quiet   /LogPath:"C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20120413_115145\MicrosoftWindowsPowerShell.log"
    (01) 2012-04-13 12:11:18 Slp: Running: Dism /Online /Enable-Feature /FeatureName:MicrosoftWindowsPowerShell  /NoRestart  /Quiet   /LogPath:"C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20120413_115145\MicrosoftWindowsPowerShell.log"
    (06) 2012-04-13 12:11:33 Slp:
    (06) 2012-04-13 12:11:33 Slp: Error: 0x800f080c
    (06) 2012-04-13 12:11:33 Slp:
    (06) 2012-04-13 12:11:33 Slp: Feature name MicrosoftWindowsPowerShell is unknown.
    (06) 2012-04-13 12:11:33 Slp: A Windows feature name was not recognized.
    (06) 2012-04-13 12:11:33 Slp: Use the /Get-Features option to find the name of the feature in the image and try the command again.
    (01) 2012-04-13 12:11:33 Slp: Process returned -2146498548
    (01) 2012-04-13 12:11:33 Slp: Failed to enable OS feature :MicrosoftWindowsPowerShell, result: -2146498548
    (01) 2012-04-13 12:11:33 Slp: Watson Bucket 1

    Original Parameter Values

    (01) 2012-04-13 12:11:33 Slp: Parameter 0 : SQL Server 2012@RTM@

    (01) 2012-04-13 12:11:33 Slp: Parameter 3 : Microsoft.SqlServer.Configuration.SetupExtension.OSFeatureEnableFailureException@1428@1

    (01) 2012-04-13 12:11:33 Slp: Parameter 4 : Microsoft.SqlServer.Configuration.SetupExtension.OSFeatureEnableFailureException@1428@1

    (01) 2012-04-13 12:11:33 Slp: Parameter 5 : Install_PowerShell2


    • Edited by MSMit Friday, April 13, 2012 3:00 AM
    Friday, April 13, 2012 2:59 AM

Answers

  • Can you try to add it ?see below screen shot

    


    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you.
    This can be beneficial to other community members reading the thread.

    • Marked as answer by MSMit Friday, April 13, 2012 5:15 AM
    Friday, April 13, 2012 5:06 AM

All replies

  • Can you try installing power shell 2.0


    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you.
    This can be beneficial to other community members reading the thread.

    Friday, April 13, 2012 3:41 AM
  • What  do you mean ? It is Windows 7 , Powershell 2.0 is built-in and fully functional as far as I can see.
    • Edited by MSMit Friday, April 13, 2012 3:59 AM
    Friday, April 13, 2012 3:59 AM
  • Can you run the below power shell commands to get installed power shell version


    PS Variable:\> Set-Location variable:
    PS Variable:\> $Host


    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you.
    This can be beneficial to other community members reading the thread.

    Friday, April 13, 2012 3:59 AM
  • PS U:\> set-location variable:
    PS Variable:\> $Host


    Name             : ConsoleHost
    Version          : 2.0
    InstanceId       : 4b30a5a2-bc83-4314-8c6c-b2e5231e9347
    UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
    CurrentCulture   : en-AU
    CurrentUICulture : en-US
    PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
    IsRunspacePushed : False
    Runspace         : System.Management.Automation.Runspaces.LocalRunspace
    Friday, April 13, 2012 4:02 AM
  • Can you check  that value install under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1 is set to 1

    and

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine

    PowerShellVersion set to 2.0

    PSCompatibleVersion set to 1.0,2.0


    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you.
    This can be beneficial to other community members reading the thread.

    • Marked as answer by MSMit Friday, April 13, 2012 5:12 AM
    • Unmarked as answer by MSMit Friday, April 13, 2012 5:15 AM
    Friday, April 13, 2012 4:27 AM
  • Yes,  what you expect .  I uploaded the image for you.

    Friday, April 13, 2012 4:36 AM
  • However, I don't see value install under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1 is set to 1 at all.
    Friday, April 13, 2012 4:39 AM
  • Can you try to add it ?see below screen shot

    


    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you.
    This can be beneficial to other community members reading the thread.

    • Marked as answer by MSMit Friday, April 13, 2012 5:15 AM
    Friday, April 13, 2012 5:06 AM
  • Ahmed,

    Thanks for the hint

    Yes,  missing value install was a culprit. However, can't resist making a comment that  Microsoft could do a better job for creating more robust and smart installation. It is very very disappointing that missing  value makes installation not responsive ( 2008 R2)  and fails Management Studio install for 2012. And all that for Windows 7 where it is crystal clear that PowerShell 2.0 is built-in.  I spent almost 2 days trying to bring my box to functional state.

    Friday, April 13, 2012 5:10 AM