Troubleshoot Windows File Share Access Denied Errors
Before you begin
- Applies to:Windows 11 clients accessing a direct SMB share on Windows Server 2022 or 2025. Resolve DFS referrals first for a DFS path.
- Where to start:Run client checks in PowerShell 7 or later from the affected userโs session. Use delegated server access to review share and NTFS permissions.
- What you need:Have the real account, server, and share path. Keep the same shell open for commands that share variables.
Guide tools
Use this guide when the same UNC path opens for one user but fails with Access is denied for another, or when a user can read but cannot write. Record the exact file or folder and the operation that fails.
Troubleshooting Steps
Confirm the path and authenticated identity
ClientUse the original client and run in the affected userโs session. Check TCP 445 and try a read of the exact UNC path. Get-SmbConnection lists established sessions only. Compare Credential with the account expected to reach the share. A missing connection can mean authentication failed before one was established.
$Server = 'files01.corp.example.com'Test-NetConnection -ComputerName $Server -Port 445Get-Item -LiteralPath '\\files01.corp.example.com\Projects\TeamA'Get-SmbConnection | Select-Object ServerName, ShareName, UserName, Credentialwhoami.exe /groupsCheck permissions on the share
File serverRun on the server actually hosting the share. Confirm the local root directory and compare the share entries with the approved user or group. Write access must be permitted at both the share and NTFS layers.
Get-SmbShare -Name 'Projects' | Select-Object Name, PathGet-SmbShareAccess -Name 'Projects' | Select-Object AccountName, AccessControlType, AccessRightInspect NTFS access on the denied folder
File serverReplace the local path after confirming the share root. Inspect inheritance and access entries on the actual child folder or file. Use Properties โ Security โ Advanced โ Effective Access to examine the named userโs NTFS access. It does not replace checking share permissions or identifying the credentials in use.
$Path = 'D:\Shares\Projects\TeamA'(Get-Acl -LiteralPath $Path).Access | Select-Object IdentityReference, AccessControlType, FileSystemRights, IsInheritedCorrect the confirmed cause and verify
ResolutionFix the approved group membership, the narrow ACL entry, or the affected mapping through its owning policy. For group changes, allow replication, then have the user sign out and sign in to obtain fresh credentials and reconnect. Retest the intended operation as the affected user, using an approved scratch location for writes. If access is broader than intended, restore the recorded share or NTFS entries.
Get-SmbConnection | Select-Object ServerName, ShareName, CredentialGet-Item -LiteralPath '\\files01.corp.example.com\Projects\TeamA'References
Your feedback keeps these production procedures accurate and battle-tested.