?
Solved

how to disconnect users during a session

Posted on 2008-10-21
3
Medium Priority
?
1,495 Views
Last Modified: 2010-10-05
Users don't always logoff before a backup. How can I dissconnect active users from the server in windows server 2003 sbs.
0
Comment
Question by:mbt99
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 1000 total points
ID: 22771818
0
 
LVL 18

Assisted Solution

by:sk_raja_raja
sk_raja_raja earned 1000 total points
ID: 22771845
1.If you wish to disconnect a single user then you need to know what machine name he's at. Then you can modify the batch file to
net session \\computername /delete

2.1. Create a batch file and place the following
net session /delete

2.2. Create a scheduled task to run the batch file
If you disconnect users who are accessing shared resources, they might lose data. You may want to warn connected users before you disconnect them.

0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
The article explains the process to deploy a Self-Service password reset portal I developed a few years ago. Hopefully, it will prove useful to someone.  Any comments, bug reports etc. are welcome...
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question