From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9604138320.AA832020976@mail.dos.state.fl.us> Date: Mon, 13 May 96 16:54:15 est From: Jim Crozier Subject: Re[4]: Scriptor Utility to Disconnect Users Yes, I do appreciate such refinement. I do admit that my approach is something of a sledgehammer. In my ccMail maintenance jobs I start by using: RMTSHARE \\server\share /DELETE and finish by RMTSHARE \\server\share=server_abs_mapping to restore the share It works and is scriptable, but pretty crude. ______________________________ Reply Separator _________________________________ Subject: RE: Re[2]: Scriptor Utility to Disconnect Users Author: "Sakovich, Aaron" at INTERNET Date: 5/13/96 4:18 PM Jim Crozier wrote: > But, If your users are on Win95, this will be fairly useless, since > the connection will be pretty much immediately re-established, which > is why, I drop the named share (and use the administrative share) when > necessary to get exclusive access to a database (such as ccMail). Ah, two different problems. You'd asked for a way to disconnect users. To limit the access to a share (before you do your NET SESSION /DELETE), you'll need to do a NET SHARE sharename /USERS:# where # is 0 if no one is to access it, or 1 if only your administrative access is to be allowed. You can also completely turn off sharing on your server if you want to disallow any access to the system by doing a NET PAUSE SERVER; to restore, do a NET CONTINUE SERVER. >>I'm looking for a script or batch utility to disconnect users from >shares on >>remote servers so that some database maintenance can take place >unattended >>on a number of Access databases during the night. >> >>Anyone know anthing that will work for this? >> >>Peter > > >NET SESSION /DELETE > >For more information on this and other fine NET commands, type NET HELP >or NET HELP {topic}. Aaron again... -- Aaron Sakovich ---------------------------------------- aaron@garply.com Alpha NT mail list ------------------------------- Alpha NT file archive alphant@garply.com http://www.garply.com/tech/comp/sw/pc/nt/alpha.html