Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: SQL Server on Windows
Summary
This article helps you resolve SQL Server Setup error 0x84BB0001 ("Access is denied") when you install SQL Server with a group managed service account (gMSA). The error occurs when an Active Directory or remote Security Account Manager (SAM) lookup blocks the identity that runs Setup, even though the gMSA itself is valid. The article explains how to identify the denied identity, review the remote SAM Group Policy setting, and correct Active Directory or cluster-object permissions.
Before you start, review the prerequisites and run the quick validation checklist in Troubleshoot SQL Server setup, startup, and authentication failures with gMSAs.
Symptoms
- Setup reports
0x84BB0001or "Access is denied". Detail.txtcontainsLookupADEntry,DirectoryEntries.Find, orUnauthorizedAccessException.- Changing permissions on SQL Server data folders doesn't resolve the failure.
Cause
An Active Directory or remote SAM lookup can block the identity running Setup. The gMSA itself can be valid while the Setup account or the effective security policy blocks the required lookup.
Diagnose error 0x84BB0001
Identify the denied identity from
Detail.txt.Search Setup logs for
0x84BB0001,LookupADEntry,DirectoryEntries.Find,UnauthorizedAccessException, andRestrictRemoteSAM.Run the following command in PowerShell.
Get-ChildItem 'C:\Program Files\Microsoft SQL Server\*\Setup Bootstrap\Log' -Recurse -File | Select-String -Pattern '0x84BB0001|LookupADEntry|DirectoryEntries.Find|UnauthorizedAccessException|RestrictRemoteSAM'Expected result: the search identifies the earliest relevant log entry and the denied identity.
Review the effective Network access: Restrict clients allowed to make remote calls to SAM policy.
For failover cluster instance (FCI) Setup, review permissions for the cluster computer object and the virtual computer object.
Resolve error 0x84BB0001
Caution
Don't broadly weaken domain security policy or grant permanent local administrator rights to the gMSA as a workaround.
Authorize the Setup identity through the approved security policy
The Network access: Restrict clients allowed to make remote calls to SAM policy controls which users and groups can make remote calls to SAM and Active Directory. Its access-control entries can explicitly allow or deny defined principals. Keep the policy in place and add only the required account to its remote-access allow list.
Use
Detail.txtto identify the account that received the access-denied error. Don't assume that the denied identity is the gMSA, because SQL Server Setup might be failing while it uses the identity that launched Setup.Generate an effective Group Policy report on the affected server.
New-Item -ItemType Directory -Path C:\Temp -Force gpresult /h C:\Temp\gpresult.htmlOpen
C:\Temp\gpresult.html, identify the Group Policy object (GPO) that configures Network access: Restrict clients allowed to make remote calls to SAM, and have the security or Group Policy administrator review that authoritative GPO.If the Setup logs confirm that this policy blocks the required lookup, add only the identified Setup identity or an approved security group to the policy's remote-access allow list. Don't disable the policy broadly or grant access to a large, unrelated group. Preserve your organization's security baseline.
- In Group Policy Management, edit the authoritative GPO.
- Go to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options.
- Open Network access: Restrict clients allowed to make remote calls to SAM.
- Select Edit Security, add the approved identity or group, and grant Remote Access.
- Apply the policy according to your organization's change-management process.
On the affected server, refresh Group Policy and generate another result report.
gpupdate /force gpresult /h C:\Temp\gpresult-after.html
For more information, see Network access: Restrict clients allowed to make remote calls to SAM.
Correct Active Directory or cluster-object permissions
For a standalone installation, use the first UnauthorizedAccessException, LookupADEntry, or DirectoryEntries.Find entry in Detail.txt to identify the directory object and denied operation. Have an Active Directory administrator grant only the permission required for that operation on the applicable object or organizational unit.
For an FCI installation, follow these steps:
- Identify the cluster name object and the virtual computer object involved in the failed Setup operation.
- In Active Directory Users and Computers, select View > Advanced Features.
- Locate the affected computer object or the organizational unit in which Setup must create or update the object.
- In the object's Properties, select Security > Advanced, and verify that the cluster name object or approved provisioning identity has only the permissions required by the organization's cluster-object provisioning model.
- If the virtual computer object was prestaged, verify that it isn't disabled and that the cluster name object has the organization-approved control permissions on it.
- If Setup must create the object, verify the approved create-computer-object permissions on the target organizational unit.
Don't grant broad permissions based only on error 0x84BB0001. Correlate the directory object and denied operation with Detail.txt, Group Policy results, and cluster evidence first.
Verify that policy and directory changes replicated before you retry Setup
After the administrator updates Group Policy or Active Directory permissions, run the following commands.
gpupdate /force repadmin /replsummary repadmin /showrepl *If the change involved the authorized principals of the gMSA, verify the value from the affected host.
Get-ADServiceAccount -Identity 'SQLgMSA' ` -Properties PrincipalsAllowedToRetrieveManagedPassword Test-ADServiceAccount -Identity 'SQLgMSA'
Expected result:
- The effective Group Policy report contains the approved SAM remote-access entry, when applicable.
- Active Directory replication reports no error affecting the changed object or policy.
- The intended authorized principals are returned for the gMSA.
Test-ADServiceAccountreturnsTrue.- A new SQL Server Setup attempt no longer records the same access-denied operation.
If different domain controllers return different gMSA or permission information, don't repeatedly retry Setup. Resolve the replication error first. The repadmin /replsummary command identifies domain controllers that have inbound or outbound replication failures. For more information, see Repadmin /replsummary.
If Setup fails after user rights were tightened in your environment, see SQL Server installation fails after default user rights are removed.
Collect diagnostic data
If Setup still fails with error 0x84BB0001 after you complete these steps, collect diagnostic data, including Detail.txt and gpresult output, for the same failure interval. For the gMSA-specific evidence and standard SQL Server logs to gather, see Collect diagnostic data in the gMSA troubleshooting overview. Use that data to continue the investigation or to open a support case.