Home > other >  SQL Server2012 installation errors - enabled Powershell failure
SQL Server2012 installation errors - enabled Powershell failure

Time:10-19

A great god for help all of you! The small white one, appear the following error when installing SQL Server2012, how should solve?
Enable Windows function MicrosoftWindowsPowerShellV2 error, error code: 2146498548, please try MicorsoftWindowsPowerShellV2 from Windows management tools to enable Windows function, and then run the installer again,
Have been online for a long time, also some people encountered similar problems, but no answer... Really appreciate! Thank you very much!

CodePudding user response:

Hi KellyDing,
You are on what system installation of SQL Server 2012? You into the program and the function of open or close system function have a look at the inside have checked PowerShellV2 installation, if not, you check according to the determined,
In addition you use which version of SQL Server 2012? SP1 and RTM and other early version of the 2012 could be such a problem, need to registries modification keys, you can take a look at this: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/130045d7-b615-414d-b01b-7d3386956746/powershell-error-for-installation-sql-server-2012-rtm-developer-on-windows-7-x64? Forum=sqlsetupandupgrade, suggest you use the latest installation package to install, it should be SQL
Server 2012 with SP4

CodePudding user response:

Hello! I am windows8.1 system, very thank you for your reply, but I still have some problems,
To check the installed PowerShellV2, you say you refer to the following link to pictures of Windows Powershell Desired State Configuration service? I didn't find what you have said that option...
Thank you for your glad!
https://pnkdka.dm2302.livefilestore.com/y4mcipCQtWUuGRUGUQADri6646fe0_sq7aLayQVta-NeWXp_hh7sgOlnfT8XeFIKbs6GbDKoAblBPHdU-hjkWXA1WOPDid48CZgMj19Yd61TmJJoI9BT3m7pUfO-OQryv6P7WExIBTcMfNco5rmA7onygzapAthPBcysYq3ucT8KRlkpuos-ZVfhHYNZ5AI3dwj3_kZJYCq98L98amddoRvvw? Width=429 & amp; Height=768 & amp; Cropmode=none

CodePudding user response:

You've already checked the.net 2.0, this problem should not be. The problem of net, but couldn't SQL Server to identify the system installation. The.net framework, there are two reasons, one is said above, may be early problems in the 2012 version, consult the link above, you have a look at the corresponding registry, be careful not to modify the registry,
Another reason is that Windows 8.1 system need to install SQL Server 2012 Service Pack 1 can be compatible, you may need to use SQL Server 2012 with SP1 installation package for installation, the installation package I can't find where to download the looked like, did you look at access to, of course, if not have to use 2012, you can install 2014 and later versions, which is compatible with all departments,

CodePudding user response:

How do you do, I'll try to install the SQL Server2014, appear the same mistake, so it should not be a second reason, for what you have said that link, I don't know why I always run the powershell console error, tip "unable to load PSreadline module, the console in the case of unused PSreadline run", so I have temporarily can't see the powershell version, and then on to view the registry, I found my registry has grown and he also not too, first of all, I didn't find this folder HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ \ PowerShellEngine powershell \ 1, so I only in HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ powershell \ 1 under the new added the install button, but I found the HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ powershell \ under 3 is PowerShellEngine this folder, should I change in this folder? I added one is currently the only after the install button will not be able to install successfully, the following two pictures link is my current registry details, thank you for your glad!
https://pnlosw.dm2302.livefilestore.com/y4mK73oZX_rwbdW56MVfLMPiarJ2eHcT1RYvPl-jsRddTSLvDHxs9lfy8qPtU0e50BBLemqe_RGrKjdNEtqXJHOSPk8rPacjsCPHdD8B71g4jRrnBRTN_3GPWKJ-EV81OecLsjg0oFTNjbTBCDHGPZoEX-Fo7qy1R3lSrSPN0STGSzbFSy7R0tIRK2DDCSJHx7hZPbHR1iu2sbmOFbcFEuYFQ? Width=1025 & amp; Height=525 & amp; Cropmode=none
https://pnkrtg.dm2302.livefilestore.com/y4m4K35ynwrnYjesVrfAT6tcvXvtBgLnM0vQm46Q89ID8FArWcUdth29PYQpP61C834lvEA_Gv2tMZyVt8p8Gs5XmhxixAQrK7COq-2lyAaHcgoIWVdSxsmQcZtY68yA7evBAnUAf4D34b9bRXltG6O9dtsy9GBf3u-dDdWK1Lo4pLzoSNYwUOCEm5twZchFKITAjdQLK7CFAxV3JYGRoVyrw? Width=1025 & amp; Height=525 & amp; Cropmode=none

CodePudding user response:

Please try from Windows management tools to enable Windows function MicorsoftWindowsPowerShellV2,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- start Powershell prompt, from the command line, you can enter Powershell?
Win + R, run the Christmas box enter Powershell successfully enter Powershell prompt?

CodePudding user response:

Thank you for your reply! But from the command line or enter the Powershell, prompt error as well as the above, "unable to load PSreadline module, the console in the case of unused PSreadline run", specific circumstances screenshot shows the following links,
https://pnl2qq.dm2302.livefilestore.com/y4mjQjIphRc2dF-z44EzwyF8JiQIj9F7Z85T8Wb3v93GY_W0lFQcBX5puKEP8OLwOBl2BDXHHUi-JR1F4G5u4r2I_8cMuwXJT5xiKFOoxGDM15ywgGc3C4d25sHqtnmZqIY6RkLYUkPf6QIIi-C-TnJ7H64BdiQxakruKUhNBAtwLn3hyZyIdLbig0Oyvi-2WLQKjRl-57KFrI4hQF8mNU99A? Width=677 & amp; Height=443 & amp; Cropmode=none

CodePudding user response:

That this problem is the Powershell itself is damaged, you use Powershell did before, or after install SQL Server problems?
You try using SFC scanning system: https://answers.microsoft.com/en-us/windows/forum/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93

CodePudding user response:

Thank you for your reply! I there is no specific use powershell before, but I am not sure when to install any other software used, according to the post said I use the SFC scanning system, prompt "Windows resources protection found damaged file but was unable to repair", and then I have to run again RestoreHealth, results suggest "requested operation failure", and the link mentioned in the error "can not find the source file" also is different, the specific results of CMD CBS and DISM log file below, so I can do now is only the reshipment system? Be very grateful!
Microsoft Windows version 6.3.9600 []
(c) 2013 Microsoft Corporation, all rights reserved.

C: \ Users \ Administrator> SFC/scannow

Start scanning system, this process will need some time,

Start scanning system validation phase,
Validation has been completed 100%,

Windows resource protection found damaged file but can't repair
Some of these files, CBS. Log windir \ Logs \ CBS \ CBS with detailed information in the Log,
For example C: \ Windows \ \ Logs \ CBS CBS log, please note that in offline service scheme,
Currently does not support logging,

System file repair changes come into force after the next reboot,

C: \ Users \ Administrator> DISM/Online/Cleanup - Image/RestoreHealth

Image deployment services and management tools
Version: 6.3.9600.17031

The image version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 3017

Requested operation failure, need to restart the system to rollback the changes made,

Can be found in C: \ Windows \ Logs \ DISM \ DISM find DISM log log file

https://onedrive.live.com/embed? Cid=EA32221B38AE7531 & amp; Resid=EA32221B38AE7531%21111 & amp; Authkey=AEWrAZ3_we4AWWk
https://onedrive.live.com/embed? nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related