Solved

idle mapped drive

Posted on 2016-09-27
10
53 Views
Last Modified: 2016-10-03
how do you tell the server or the workstation to disconnect an idle mapped drive?

here is the scenario:  i know the limit for concurrent connection to a server is 20. for this scenario, how do you automatically disconnect the connections that have idle for days? i have changed the idle time via net config server /autodisconnect     but still, some connections stays up to days...
0
Comment
Question by:mwauki
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 23

Expert Comment

by:NVIT
ID: 41818766
As long has the connection has a file open on the share, or if Windows Explorer is open to that share...
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 41818776
i know the limit for concurrent connection to a server is 20  To a Client OS it is 20, A server is by default unlimited.
0
 

Author Comment

by:mwauki
ID: 41818787
that is the problem, i do not see any open file! see attached....
idle.png
0
 

Author Comment

by:mwauki
ID: 41818791
the issue is happening on a win7 that acts like a server
0
 
LVL 23

Expert Comment

by:NVIT
ID: 41818803
From that server workstation, use

NET SESSION to List all sessions connected to this machine
NET SESSION /DELETE /Y to delete all connections
NET SESSION \\ComputerName /DELETE /Y to disconnect sessions from a given machine

http://ss64.com/nt/net_share.html
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 17

Expert Comment

by:bigeven2002
ID: 41818805
I just realized the duplicate question.  Windows 7 will only allow 20 connections so you. An disregard my comment on the other question about raising the limit.  You. An force disconnect users in the share files window.  Make sure users close the explorer windows and programs that utilize the share and then it should disconnect from idle activity.
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 41818882
if you need more than 20 concurrent connections your only resource is to use a server operating system rather than a client operating system.
0
 

Author Comment

by:mwauki
ID: 41819024
is there a cmd to disconnect whateve program that is still open?
0
 
LVL 23

Accepted Solution

by:
NVIT earned 500 total points
ID: 41819030
mwauki,

> is there a cmd to disconnect whateve program that is still open

For closing programs, use TASKLIST and TASKKILL. See my post here: https://www.experts-exchange.com/questions/28972793/Is-there-a-way-to-send-a-close-program-command-via-remote-session.html#a41818645
0
 

Author Closing Comment

by:mwauki
ID: 41827332
thank you all!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

867 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

22 Experts available now in Live!

Get 1:1 Help Now