Windows Server / File Services, Storage & Backup
Inspect file-server client sessions during a capacity incident
A few clients can create many opens or unusual activity while other users report latency. Summarize actual server sessions before blocking traffic.
Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.
Start with this check
Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.
Get-SmbSession | Select-Object SessionId, ClientComputerName, ClientUserName, NumOpens, Dialect
What the results mean
The view identifies current SMB sessions and open counts. Large counts can be normal for an application and are not automatically an abuse indicator.
Fix the cause and check again
Correlate the busiest sessions with file workload, storage latency and scheduled jobs. Coordinate changes with the affected application or client owner.
Before changing production
Do not disconnect sessions solely because they have many opens; doing so can interrupt legitimate writes.