Share via

unable install sql on on pc due to power shell error

pravin bhingardive 0 Reputation points
2026-02-08T08:45:29.2966667+00:00

unable install sql on on pc due to power shell error

SQL Server | SQL Server Transact-SQL
0 comments No comments
{count} votes

Answer recommended by moderator
  1. Erland Sommarskog 133.1K Reputation points MVP Volunteer Moderator
    2026-02-08T10:58:28.7533333+00:00

    If you want help, you need to be more specific, for instance including the error message you get. It also helps if you tell which version and edition of SQL Server you are trying to install.

    I'm afraid I've never seen any PowerShell errors in conjunctions with SQL Server. I'm not even aware that any PowerShell is executed during SQL Server Setup.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 83,581 Reputation points Volunteer Moderator
    2026-02-08T16:41:32.5733333+00:00

    The actual error information is in the log file. Review the file for the error and report here for help. Common errors are disk sector size or trying to install on an arm processor pc which are unsupported.


  2. Q&A Assist
    2026-02-08T08:45:36.74+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If you are encountering a PowerShell error while trying to install SQL Server, it could be due to several reasons, such as insufficient privileges, issues with the storage subsystem, or remnants from previous installations. Here are some steps you can take to troubleshoot the issue:

    1. Check Privileges: Ensure that you are running the PowerShell as an Administrator.
    2. Disk Sector Size: If your disk sector size is incompatible, it may cause installation issues. You can check the disk sector size by running the following command in an elevated command prompt:
         fsutil fsinfo sectorinfo C:
      
      If the sector size is greater than 4096, you may need to apply a registry fix.
    3. Clean Previous Installations: If there are remnants from previous installations, uninstall all SQL Server components via Control Panel > Programs and Features. Then, delete the following folders if they exist:
      • C:\Program Files\Microsoft SQL Server
      • C:\Program Files (x86)\Microsoft SQL Server After that, try installing SQL Server again.

    If the problem persists, you may want to check the SQL Server error logs for more specific information regarding the installation failure.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.