Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New SQL Server Installation - Attempted to perform an unauthorized operation

I have a new Windows 10 Home machine and I want to install SQL server. I already have Visual Studio 2017 installed and SSMS 2017 (Which I initially though installed SQL).

On first try I got this error:

VS Shell installation has failed with exit code 1638

And found I needed to Uninstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64), install SQL Server, then reinstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64). As seen here

Then I got this error:

Attempted to perform an unauthorized operation

enter image description here

  1. I tried the registry key permissions from this link
  2. I tried editing my local group policy but Win 10 doesn't have one.
  3. I tried exiting from all Firewalls and Anti-malware software.

I have been trying to install SQL Server for 4 weeks now

Edit:

I found the logs but the error seems the same:

enter image description here

like image 529
Lex Eichner Avatar asked Nov 26 '17 11:11

Lex Eichner


People also ask

How do I fix a SQL Server installation error?

Launch the SQL Server Setup program (setup.exe) from SQL Server installation media. After prerequisites and system verification, the Setup program will display the SQL Server Installation Center page. Click Maintenance in the left-hand navigation area, and then click Repair to start the repair operation.

Why SQL Server is not installing?

Uninstall the existing SQL Server and all the components from the add remove program. Backup the registry. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.


1 Answers

A security application installed on the server was preventing SQL Server setup to get access

After weeks of Googling i turns out my machine came with a bit of software called Bull Guard which conflicts with SQL Server. After uninstalling this software the problem was solved. (Disabling the service didn't work)

like image 136
Lex Eichner Avatar answered Sep 20 '22 12:09

Lex Eichner