?
Solved

Remote disconnection re-connection

Posted on 2004-11-23
3
Medium Priority
?
287 Views
Last Modified: 2010-04-10
Hi
I need to force a disconnection / reconnection of a mpapped drive within my environment (Which is a WAN) but do not want to have to visit every machine to do it.

Machine1 is a small desktop that acts as a login server for an application within our business. This server still runs on NT4, the client machines are all XP Pro (SP1)

I have been unable to update some records as I was unable to write to the files as the trust had been broken between the XP & NT networks. This trust is not being re-established  - political reasons within the business groups :-(   - I then modified the permissions on the NT box, rebooted my client PC and re tried updating records held on the server. This failed.

I then did a manual network disconnect & re-connect and re-tested and all was ok. I am therefore surmising that a reboot on a client machine with a mapped network drive set to 're-connect at log on' doesn't actually disconnect during the re-boot phase. So, does anyone out there have any suggestions on how to force a disconnection / re-connection remotely without an input from the userbase?

Mike
0
Comment
Question by:thebusies
  • 2
3 Comments
 
LVL 7

Expert Comment

by:Focusyn
ID: 12655596
If all you need for them to do is force disconnect and reconnect on logon and/or reboot, then a simple batch file with net use /delete then net use to re-map will solve your problem.  Otherwise, you'll need to use server manager and some remote scripting.  Either way is possible.  For the server manager to work, you'll need some administrative type access to the clients (you'll need access to remote control the system services)
0
 
LVL 7

Accepted Solution

by:
Focusyn earned 1200 total points
ID: 12655627
FYI - to use the batch file method, use the following syntax, where z: is your network drive

@ECHO OFF
Net Use z: /delete
Net Use z: \\servername\sharename
Exit

Copy that to a file called connect.bat or whatever you want to name it as long as it's .BAT, then drop that file in the All Users->Start Menu->Programs->Startup folder .
0
 

Author Comment

by:thebusies
ID: 12655703
I love a simple straight-forward answer as I am a straight-foward  simple sort of guy
Thanks Focusyn
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

864 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