OpenFilesMonitor is a lightweight Windows WPF admin tool that connects to one or more Windows file servers and shows currently open SMB files with full path and user context. It also allows you to close selected open file handles (optionally “force”) so you can release stuck locks on shared files.
If you’ve ever needed a simple “Get-SmbOpenFile GUI” or “Close-SmbOpenFile GUI” for helpdesk/sysadmin work, this is that.
Under the hood, it queries open SMB handles via the Windows SMB provider (MSFT_SmbOpenFile) over CIM/WinRM (WSMan) with DCOM fallback.
For closing handles, it uses the supported SMB cmdlet approach (Close-SmbOpenFile) via an external powershell.exe invocation (avoids embedded runspace issues).
Note: Closing an SMB handle drops the server-side file lock. Client apps (like Excel) may keep the window open, but saving usually errors or forces a “Save As”.
Go to the Releases page for the latest build:
If you download the framework-dependent build, you’ll need the .NET 8 Desktop Runtime installed on Windows.
```powershell dotnet restore dotnet build dotnet run –project .\OpenFilesMonitor\OpenFilesMonitor.csproj