Finding Open Files

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell

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!

Posted Jul 18 2011, 06:00 AM by ps1
Filed under:
Copyright 2012 All rights reserved.