Fix Attempted to Perform an Unauthorized Operation in SQL Server 2019
Question details
The user needs to resolve an authorization error that blocks the installation of SQL Server 2019 Developer Edition.

- Product
- SQL Server 2019 Developer Edition
- Device & OS
- not provided
- Scenario
- Installing SQL Server 2019 Developer Edition on a computer.
- Observed behavior
- The installation process fails with an 'Attempted to perform an unauthorized operation' error message, offering only Retry or Cancel options and preventing completion.
Ensure you are logged into Windows with a full Administrator account and temporarily disable any strict antivirus or endpoint security software that might block registry modifications.
Utilize Microsoft's Official Troubleshooting Resources and Community
Leverage Microsoft's dedicated troubleshooting documentation and expert community to identify the specific system permissions causing the installation failure.
SQL Server installation errors like 'Attempted to perform an unauthorized operation' are highly specific to your local Windows environment. They usually indicate that the setup program lacks the necessary permissions to modify a specific Windows Registry key or file directory.
Because this issue is outside the scope of general productivity software support, Microsoft provides targeted documentation and an active expert community specifically for SQL Server setups.
Navigate to the Microsoft Learn troubleshooting guide for the 'Attempted to perform an unauthorized operation' error to see common registry fixes and known conflicts.
Locate your SQL Server setup logs (usually in the Setup Bootstrap folder) to identify the exact file or registry key causing the unauthorized operation.
Go to the official Microsoft Learn Q&A platform and filter by the 'SQL Server' tag.
Click 'Ask a question' in the upper-right corner. Include your SQL Server version, Windows version, the complete error message, and the setup logs for expert assistance.

Looking for a Hassle-Free Productivity Suite?
While troubleshooting complex database and Microsoft infrastructure issues can be frustrating, your daily office software shouldn't be. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office that installs smoothly without complex system configurations.
- 1. Download the installer: Visit the official WPS Office website and click 'Download WPS Office Free'.
- 2. Run the setup: Launch the lightweight installer, which requires minimal system permissions to set up.
- 3. Start working: Open Writer, Spreadsheets, or Presentation to immediately start working with your existing Microsoft Office files.

Frequently Asked Questions
Why does SQL Server setup say 'Attempted to perform an unauthorized operation'?
This error typically occurs when the SQL Server installation program encounters a Windows Registry key or folder that it does not have the necessary permissions to read or modify. It is frequently caused by overly restrictive group policies, antivirus interference, or corrupted registry permissions.
Can I fix this by running the SQL Server setup as an administrator?
While right-clicking the setup executable and selecting 'Run as administrator' is a mandatory best practice, it may not resolve the issue if specific registry keys have had their 'SYSTEM' or 'Administrators' permissions removed by third-party software or security policies.
How can I find out exactly which operation was unauthorized?
You need to open the 'Detail.txt' file located in the SQL Server setup logs directory (usually C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\<Timestamp>). Searching this text file for the word 'Exception' or 'Unauthorized' will often reveal the exact registry path or file that triggered the failure.




