Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot disconnect mapped drives

Status
Not open for further replies.

Kiwica

IS-IT--Management
Feb 26, 2003
102
US
Hi.. running server2003 with A/D and a mix of w2k and xp pro clients.

We use a script to map to network drives, an example of the script is:
@echo off
net use f: \\servername\resource\path
net use t: \\servername\resource\path
net use h: \\servername\resource\path

The script works fine. Heres my problem... I recently needed to change the path on one of my drives, so i updated the script, logged out and back it. the drive in question remains in its old state, ie pointing to the old path.

I have tried the net use /delete command to no avail. when I look on the client using explorer, it show the old drive with its contents, but when i try and manually disconnect the drive it tells me network connection not found????

It appears that the old state is being cached somewhere, but I dont know where, or how to stop this...any ideas?

ps..this has been a couple of days now, so we are way past the default refresh period...

"Have you ever imagined a world with no hypothetical situations?
 
Switch your script to vbscript and you can specify to use the "True" switch which should force the removal.

Refer to my FAQ for an example login script that does all you need ot do. faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Is this happening domain wide or just on a few clients?

If domain wide: Active directory profiles also have the ability to specify mappings and group policies can also perform redirections.

If just a few clients: You may find batch files on some PC's that map drive being called from the startup folder or other locations.

A+/MCP/MCSE/MCDBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top