Monitoring Open Files and Kicking People off

  • Thread starter Thread starter Joe Smith
  • Start date Start date
J

Joe Smith

Is there a tool for Windows 2000 that allows us to see what files are open
on the server and kick off any users that may be on it?

Thanks...
 
Joe Smith said:
Is there a tool for Windows 2000 that allows us to see what files are open
on the server and kick off any users that may be on it?

The built-in "net file" command will do both:

Display all REMOTELY open files with:

net file

(It will display the FileID)
To close use:

net file FileID /close

(A batch "for .. in ...do" loop can close them all.)


You can also use the free download PSTools
from SysInternals.com -- the included tool:

psfile

(works across the net too -- if you have privileges)

Pros/Cons: psfile must be downloaded, "net file"
is always there. psfile works across the net.
Net File has a better output if you need to loop
through closing hundreds of files using a "for" loop.
 
I believe both Windows 2000 Server and Pro have the "File Sharing
Management" MSC snap-in - "fsmgmt.msc". Run it and see.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
Back
Top