Openfiles Disconnect Command In Windows Server 2008

This article explains Openfiles Disconnect command in Windows Server 2008 operating system and also explains its syntax.
  • 2774

Introduction

Disconnect files and folders that have been opened by network users.

Syntax

openfiles /disconnect [/s <System> [/u [<Domain>\]<UserName> [/p [<Password>]]]] {[/id <OpenFileID>] | [/a <AccessedBy>] | [/o {read | write | read/write}]} [/op <OpenFile>]

Parameters

Parameter Description
/s <System> Defines the remote system to connect to.
/u [<Domain>\]<UserName> Command is performed by using the permission of the specified user account.
/p [<Password>] Defines the password of the user account specified with /u.
/id <OpenFileID> Disconnect the file opened with the specified file ID. You can use wildcard character (*) with this parameter.
/a <AccessedBy> Disconnects all open files specified in the AccessedBy parameter. Wildcard character may be used with this parameter.
/o {read | write | read/write}
Disconnect all open files with the specified OpenMode. Wildcard character can be used.
/op <OpenFile> Disconnect all open files created with the specified OpenFileName. Wildcard character can be used.
Example
openfiles /disconnect /id 5

Ask Your Question 

Got a programming related question? You may want to post your question here 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.