Pcornel
Windows · File Server

File Server Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3321

Back to the Topic

Answer

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.

Remember

  • Check effective access, not just ACL entries.
  • Locked files block saves.
  • Quotas give 'disk full' errors.

First checks

  • Get-SmbShare — shares
  • Get-SmbShareAccess <share> — share permissions
  • icacls <path> — NTFS permissions
  • Get-FsrmQuota — FSRM quotas
  • Get-SmbOpenFile — open files

Commands

Get-SmbSession
Display open SMB sessions on a Windows server.
Get-SmbShare
Read-only observation for share name, path and share properties.
Get-SmbOpenFile
Read-only observation for open file handles, client and session ownership.

Verify in this order

network → share → NTFS → FSRM → file

Where it usually breaks

First mismatch in device/provider → Windows storage mapping/pool → volume/filesystem/encryption → share/namespace/access policy → client/process read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3321

Confirmation

Confirm action

Continue?