Disconnect open files opened by network users

OPENFILES /parameter [arguments]

Parameter List:
/Disconnect Disconnects one or more open files.
/Query Displays files opened locally or from shared folders.
/Local Enables / Disables the display of local open files.
/? Displays this help message.

Arguments:

/sComputer - Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. This parameter applies to all files and folders specified in the command.

/uDomain\User - Runs the script with the permissions of the specified user account. The default is system permissions.

/pPassword - Specifies the password of the user account that is specified in the /u parameter.

/idOpenFileID - Disconnects the file opened with the specified numeric OpenFileID on the computer specified by the /s parameter. Use openfiles /query to learn the file ID. The wildcard (*) can be used to disconnect all open files on the specified computer.

/aUserName - Disconnects all open files by UserName value. The wildcard (*) can be used to disconnect all open files on the specified computer.

/oOpenMode - Disconnects all open files by OpenMode value. OpenMode values are Read, Write or Read/Write. The wildcard (*) can be used to disconnect all open files on the specified computer.

/opOpenFileName - Disconnects all open file connections created by a specific OpenFile name. The wildcard (*) can be used to disconnect all open files on the specified computer.


Using the /s, /u, and /p command-line options The /u and /p command-line options are available only when you use /s. You must use /p with /u to provide the user's password.

Example:

openfiles /disconnect /op "c:\my documents\test.doc"

No comments:

Recent Posts