Skip to content

Troubleshoot Windows File Share Access Denied Errors

Admin
November 18, 2026
5 min read
Intermediate
๐Ÿ’ป Target OS: Windows Server 2025 / 2022

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
Guide tools
0/0 Steps (0%)

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

01

Confirm the path and authenticated identity

Client

Use 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.

Terminal window
$Server = 'files01.corp.example.com'
Test-NetConnection -ComputerName $Server -Port 445
Get-Item -LiteralPath '\\files01.corp.example.com\Projects\TeamA'
Get-SmbConnection | Select-Object ServerName, ShareName, UserName, Credential
whoami.exe /groups
02

Check permissions on the share

File server

Run 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.

Terminal window
Get-SmbShare -Name 'Projects' | Select-Object Name, Path
Get-SmbShareAccess -Name 'Projects' |
Select-Object AccountName, AccessControlType, AccessRight
03

Inspect NTFS access on the denied folder

File server

Replace 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.

Terminal window
$Path = 'D:\Shares\Projects\TeamA'
(Get-Acl -LiteralPath $Path).Access |
Select-Object IdentityReference, AccessControlType, FileSystemRights, IsInherited
04

Correct the confirmed cause and verify

Resolution

Fix 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.

Terminal window
Get-SmbConnection | Select-Object ServerName, ShareName, Credential
Get-Item -LiteralPath '\\files01.corp.example.com\Projects\TeamA'

References

Comments