Finding Open Files

by Jul 18, 2011

If you'd like to see which files are opened by network users on your machine, there is an internal command for it. All you need are local admin privileges, so you may want to launch PowerShell with full privileges first. And then, enter this:

PS> openfiles

INFO: The system global flag 'maintain objects list' needs
      to be enabled to see local opened files.
      See Openfiles /? for more information.


Files opened remotely via local share points:
---------------------------------------------

INFO: No shared open files found.

To force a file to close, use /Disconnect along with the connection id:

Openfiles /id 1234 /Disconnect

 

Twitter This Tip!
ReTweet this Tip!