CmdID

CmdID / Commands

openfiles

Enables an administrator to query, display, or disconnect files and directories that have been opened on a system. Windows commands reference

On Windows File openfiles.exe

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Enables an administrator to query, display, or disconnect files and directories that have been opened on a system. This command also enables or disables the system Maintain Objects List global flag.

To disconnect all open files with the file ID 26843578, type

openfiles /disconnect /id 26843578Identify
/idDisconnects open files by the specified file ID. Windows commands reference

To disconnect all open files and directories accessed by the user hiropln, type

openfiles /disconnect /a hiroplnIdentify
/aDisconnects all open files associated with the user name specified in the *accessedby* parameter. Windows commands reference

To disconnect all open files and directories with read/write mode, type

openfiles /disconnect /o read/writeIdentify
/oDisconnects all open files with the specified open mode value. Windows commands reference

To disconnect the directory with the open file name C:\testshare\, regardless of who is accessing it, type

openfiles /disconnect /a * /op c:\testshare\Identify
/aDisconnects all open files associated with the user name specified in the *accessedby* parameter. Windows commands reference
/opDisconnects all open file connections that are created by a specific open file name. Windows commands reference

To disconnect all open files on the remote computer srvmain that are being accessed by the user hiropln, regardless of their ID, type

openfiles /disconnect /s srvmain /u maindom\hiropln /id *Identify
/sSpecifies the remote system to connect to (by name or IP address). Windows commands reference
/uRuns the command using the permissions of the specified user account. Windows commands reference
/idDisconnects open files by the specified file ID. Windows commands reference

To query and display all open files, type

openfiles /queryIdentify

To query and display all open files in table format without headers, type

openfiles /query /fo table /nhIdentify
/nhSuppresses column headers in the output. Windows commands reference

To query and display all open files in list format with detailed information, type

openfiles /query /fo list /vIdentify
/vSpecifies that detailed (verbose) information be displayed in the output. Windows commands reference

To query and display all open files on the remote system srvmain by using the credentials for the user hiropln on the maindom domain, type

openfiles /query /s srvmain /u maindom\hiropln /p p@ssW23Identify
/sSpecifies the remote system to connect to (by name or IP address). Windows commands reference
/uRuns the command using the permissions of the specified user account. Windows commands reference
/pSpecifies the password of the user account that is specified in the /u option. Windows commands reference

To check the current status of the Maintain Objects List global flag, type

openfiles /localIdentify

To enable the Maintain Objects List global flag, type

openfiles /local onIdentify

To disable the Maintain Objects List global flag, type

openfiles /local offIdentify