title: New SQL Server Installation - Attempted to perform an unauthorized operation
body: <p>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). </p>
  
  <p>On first try I got this error: </p>
  
  <blockquote>
    <p>VS Shell installation has failed with exit code 1638</p>
  </blockquote>
  
  <p>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). <a href="https://dba.stackexchange.com/questions/190090/help-installing-sql-server-2017-vs-shell-installation-has-failed-with-exit-cod">As seen here</a></p>
  
  <p>Then I got this error: </p>
  
  <blockquote>
    <p>Attempted to perform an unauthorized operation</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/KNWr6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KNWr6.png" alt="enter image description here"></a></p>
  
  <ol>
  <li>I tried the registry key permissions <a href="https://dba.stackexchange.com/questions/83681/setup-error-attempted-to-perform-an-unauthorized-operation">from this link</a></li>
  <li>I tried editing my local group policy but Win 10 doesn't have one.</li>
  <li>I tried exiting from all Firewalls and Anti-malware software.</li>
  </ol>
  
  <p>I have been trying to install SQL Server for 4 weeks now</p>
  
  <p>Edit: </p>
  
  <p>I found the logs but the error seems the same: </p>
  
  <p><a href="https://i.stack.imgur.com/naZqh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/naZqh.png" alt="enter image description here"></a></p>