Use this when users cannot open, save or see files on a Windows file server.
File Server Troubleshooting
Troubleshoot a Windows file server by checking SMB connectivity (Test-NetConnection -Port 445), share and NTFS permissions with effective access, open files and sessions (Get-SmbOpenFile), quotas, free space and the SMBServer event logs.
network → share → NTFS → FSRM → file
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-SmbSessionPrimary Commands
Configuration and operational commands for this Topic.
Get-SmbSessionVerifyDisplay open SMB sessions on a Windows server.
Windows / Windows Server / PowerShell · mixedGet-SmbShareVerifyRead-only observation for share name, path and share properties.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · configurationGet-SmbOpenFileVerifyRead-only observation for open file handles, client and session ownership.
Use when: Use when troubleshooting the linked operational Windows boundary.
Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.
Windows / PowerShell · data planeVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify SMB identity, effective access and the original read/write operation Verify boundary
Capture the resolved File Server address, SMB connection/session and authenticated user, and expect the intended share to be connected with the required dialect/security settings. Verify effective share and NTFS access for the exact file or folder, then perform the original create/read/write/rename operation and confirm size/hash or metadata as appropriate. Check the underlying volume remains online with expected free space and no new filesystem/storage errors. A successful share listing shows namespace and basic SMB access only, but it does not show write authorization or durable storage completion.
Step 2 Branch file-server failures from name/445 through SMB session, authorization and disk I/O Narrow the fault
If the File Server name does not resolve or TCP 445 is unreachable, stop at DNS/network/firewall. If 445 opens but the SMB session cannot authenticate, inspect the user, Kerberos/NTLM path and server security policy. If the share opens but a file operation is denied, compare share ACL, NTFS ACL, inheritance and the effective token; if authorization succeeds but reads/writes fail or stall, inspect free space, filesystem/storage errors and filter-driver events. If only one path fails, test the same file locally on the server to distinguish SMB from local filesystem behavior.
Step 3 Common mistakes Narrow the fault
- Checking share permissions but not NTFS (or the reverse).
- Check effective access, not just ACL entries.
- Locked files block saves.
- Quotas give 'disk full' errors.
Get-SmbShare— sharesGet-SmbShareAccess <share>— share permissionsicacls <path>— NTFS permissionsGet-FsrmQuota— FSRM quotasGet-SmbOpenFile— open files
ReferenceWhy it matters1 section · depth on demand
Windows file service crosses DNS, SMB session, share ACL, NTFS ACL and storage state
File Server troubleshooting must keep SMB transport/session state separate from authorization and filesystem state. A TCP 445 connection can succeed while SMB negotiation, signing/encryption, user authentication, share permission or NTFS permission fails. The effective access decision is the intersection of share and NTFS permissions under the authenticated token, and the underlying volume can independently be full, read-only or unhealthy. DFS, clustering and antivirus/filter drivers add adjacent boundaries. Record server name, resolved address, SMB dialect/session identity and exact share/path before changing permissions.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Who has the file open?
PS C:\> Get-SmbOpenFile | Where Path -like '*Budget2026.xlsx' | Select ClientComputerName, ClientUserName, Path, FileId, SessionId
ClientComputerName ClientUserName Path FileId SessionId
------------------ -------------- ---- ------ ---------
10.0.10.55 CORP\bob D:\Shares\Finance\Budget2026.xlsx 1374389537029 1374389534721
PS C:\> Close-SmbOpenFile -FileId 1374389537029 -Force
Get-SmbOpenFile lists files opened by SMB clients on the server. Closing a handle discards unsaved changes in the client application — contact the user first where possible.
Typical file server complaints
| Complaint | Investigation |
|---|---|
| "File is locked by another user" | Get-SmbOpenFile; Office owner files ~$Budget.xlsx left after crashes |
| Slow opening of folders | Access-based enumeration on huge folders, antivirus on the server, SMB signing on old hardware, latency |
| Access denied for one user | Effective access (share + NTFS), group membership requiring new logon |
| Files disappear / reappear | DFSR conflicts, offline files sync, or users copying over each other |
| Server out of space | FSRM storage reports, large files, shadow copies |
| Many sessions from one client | Application opening without closing; Get-SmbSession per client |
Server health counters
Get-Counter '\SMB Server Shares(*)\Avg. sec/Data Request','\SMB Server Shares(*)\Current Open File Count','\SMB Server Sessions(*)\Current Open File Count'
Avg. sec/Data Request consistently above ~20 ms on a local SSD-backed share points to storage or CPU on the server; compare with \PhysicalDisk(*)\Avg. Disk sec/Read.
Events to watch
| Log | Use |
|---|---|
Microsoft-Windows-SMBServer/Operational | Server-side errors, resource limits |
Microsoft-Windows-SMBServer/Security | Rejected connections |
| Application, source SRMSVC | FSRM quota and file screen events |
| Security 5140/5145 (if auditing enabled) | Share and file access attempts |
Enable Audit Detailed File Share only temporarily on busy servers — it produces large volumes of events.
*The SMB open-file record uses fictional client details and IDs to illustrate the command output, not a captured session.*
Method
File server troubleshooting covers access problems, performance and share configuration on Windows file servers.
Get-SmbShare | Select-Object Name, Path, FolderEnumerationMode
Get-SmbShareAccess -Name Projects
Get-Acl D:\Shares\Projects | Format-List
Get-SmbSession | Select-Object ClientComputerName, ClientUserName, NumOpens
Get-SmbOpenFile | Where-Object Path -like '*budget.xlsx'
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol, RequireSecuritySignature, EncryptData
| Symptom | Check |
|---|---|
| Access denied | Effective access = share AND NTFS permissions; group membership needs new logon |
| File locked | Open handle by another user (Get-SmbOpenFile, close with Close-SmbOpenFile) |
| Slow access | SMB signing/encryption overhead, antivirus scanning, disk latency, network |
| Share not reachable | Firewall (445), DNS name, SPN for Kerberos |
Use Effective Access in folder security properties to see exactly why a user is denied.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in File Server → File Server Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ · confidence 94%