Monitor Open Files

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

In a previous tip we introduced the command openfiles which lists and disconnects files that were opened remotely on your machine.

Openfiles can also track open files on your local machine. You pay for it with a lower overall system performance because the system now tracks all open files. To enable tracking local files, run this command with local admin privileges:

Openfiles /local ON

Then, restart your machine. Now, openfiles also lists local files.

To return to system default and stop monitoring local files, change the setting back to OFF:

Openfiles /local OFF

Again, a restart is needed. Openfiles /local returns your current mode.

 

Twitter This Tip! ReTweet this Tip!


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