Solved

how to disconnect users during a session

Posted on 2008-10-21
3
1,483 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
3 Comments
 
LVL 38

Accepted Solution

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

Assisted Solution

by:sk_raja_raja
sk_raja_raja earned 250 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS VPS as AD Server 2 49
SBS 2008 cannot logon remotely 7 46
Distribution groups exchange 2013 6 43
Can't a Exchange 2010 snap-in in PowerShell script 25 11
Synchronize a new Active Directory domain with an existing Office 365 tenant
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

929 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now