Attempted to perform an unauthorized operation.
Applies to: SQL Server 2012.
Problem Description.
While running SQL Server setup program to perform a new installation, to
upgrade an existing installation, or to apply an update/service pack, you may
receive the following error message:
Attempted to perform an unauthorized operation.
Error code 0x84BB0001.
Examining SQL Server setup logs you may find the following errors:
Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
Slp: Message:
Slp: Attempted to perform an unauthorized operation.
Slp: HResult : 0x84bb0001
Slp: FacilityCode : 1211 (4bb)
Slp: ErrorCode : 1 (0001)
Slp: Data:
Slp: WatsonData = Uninstall@{C44506FC-B846-4782-AC2B-8C30236CE075}
Slp: DisableRetry = true
Slp: Inner exception type: System.UnauthorizedAccessException
Slp: Message:
Slp: Attempted to perform an unauthorized operation.
Slp: HResult : 0x80070005
Slp: Stack:
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp:
Slp: Error: Action "Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction"
threw an exception during execution.
Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException:
Attempted to perform an unauthorized operation. --->
Microsoft.SqlServer.Configuration.Sco.ScoException: Attempted to perform an
unauthorized operation. ---> System.UnauthorizedAccessException: Attempted to
perform an unauthorized operation.
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: --- End of inner exception stack trace ---
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.ArpRegKey.CleanupPatchedProductRegistryInfo()
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.ExecuteAction(String
actionId)
Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String
actionId, TextWriter errorStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: --- End of inner exception stack trace ---
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject
metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject
metabase, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject
metaDb, TextWriter loggingStream)
Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
Slp: Error: Action "Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction"
threw an exception during execution.
Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException:
Attempted to perform an unauthorized operation. --->
Microsoft.SqlServer.Configuration.Sco.ScoException: Attempted to perform an
unauthorized operation. ---> System.UnauthorizedAccessException: Attempted to
perform an unauthorized operation.
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: --- End of inner exception stack trace ---
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.ArpRegKey.CleanupPatchedProductRegistryInfo()
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.ExecuteAction(String
actionId)
Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String
actionId, TextWriter errorStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: --- End of inner exception stack trace ---
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject
metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject
metabase, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject
metaDb, TextWriter loggingStream)
Slp: at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject
workflowObject, HandleInternalException exceptionHandler)
Slp: at
Microsoft.SqlServer.Configuration.BootstrapExtension.ExecuteWorkflowAction.ExecuteAction(String
actionId)
Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String
actionId, TextWriter errorStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject
metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject
metabase, TextWriter statusStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject
metaDb, TextWriter loggingStream)
Slp: Received request to add the following file to Watson reporting: C:\Users\dto\AppData\Local\Temp\tmp449E.tmp
Slp: The following is an exception stack listing the exceptions in outermost to
innermost order
Slp: Inner exceptions are being indented
Slp:
Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
Slp: Message:
Slp: Attempted to perform an unauthorized operation.
Slp: HResult : 0x84bb0001
Slp: FacilityCode : 1211 (4bb)
Slp: ErrorCode : 1 (0001)
Slp: Data:
Slp: WatsonData = Uninstall@{C44506FC-B846-4782-AC2B-8C30236CE075}
Slp: DisableRetry = true
Slp: HelpLink.EvtType = 0xEF814B06@0x92D13C14
Slp: EMBResult = Cancel
Slp: Stack:
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.ArpRegKey.CleanupPatchedProductRegistryInfo()
Slp: at
Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.ExecuteAction(String
actionId)
Slp: at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String
actionId, TextWriter errorStream)
Slp: at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter
statusStream, ISequencedAction actionToRun, ServiceContainer context)
Slp: Inner exception type: System.UnauthorizedAccessException
Slp: Message:
Slp: Attempted to perform an unauthorized operation.
Slp: HResult : 0x80070005
Slp: Stack:
Slp: at
Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
subkey, RegistryAccess requestedAccess)
Solution.
Let's try the following solutions:
- Grant full permissions to the following registry keys to the setup
account and SQL Service account: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
SQL Server, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\110.
Click
here for instructions on how to do this task.
- Run SQL Server setup with the "Run as Administrator" option.
- Disable any antivirus/security software or uninstall it temporarily. If
you are using McAfee software, try to disable the on-access scanner and the
access protection.