Solved

The network connection does not exist.

Posted on 2014-01-26
5
1,063 Views
Last Modified: 2014-03-19
Hi,

i have a customer running TS Server 2008 R2.

i am using a VB script to add printers and network drives for the users.

there are about 15 users working in TS on that server.

now since few weeks i got on the server multiple networkdrives with local drive letter but as disconnected.

when i double click the disconnected drives they all work.

when i want to delete the disconnected drive i got the following error:

The network connection does not exist.

when i restart the server this problem is away for few days. then i all starts again.

any idea's to sort this out? i want the disconnected drives gone and only the correct drives with there names.

maybe also important, the script created about 5 netwerkshares but the disconnected drives are more the 15. Some connect to the same share.

thanks!
0
Comment
Question by:Rik Van Lier
  • 3
5 Comments
 
LVL 90

Expert Comment

by:John Hurst
Comment Utility
Do a NET USE to see what drives are there.

Then for ALL drives, NET USE Z: /Delete where Z is the drive.

Then change your script to Delete before map.

NET USE Z: /Delete
NET USE Z:  \\server\folder

The problem is caused by PERSISTENCE.  You can turn Persistence OFF if you wish or handle be deleting drives in the script.

.... Thinkpads_User
0
 
LVL 1

Author Comment

by:Rik Van Lier
Comment Utility
is this the same for a vb script? i use this:


' Map network drive script

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "m:" , "\\uranus\****"
objNetwork.MapNetworkDrive "n:" , "\\uranus\****"
objNetwork.MapNetworkDrive "o:" , "\\uranus\****"
objNetwork.MapNetworkDrive "p:" , "\\uranus\****"

of course **** stand for a network share...
0
 
LVL 90

Accepted Solution

by:
John Hurst earned 500 total points
Comment Utility
I do not use VB script (just the server script) but you want to DELETE folder maps just before Mapping them so as to remove extra drives.

Probably something like  objNetwork.MapNetworkDrive "p:" , /Delete before the map.

.... Thinkpads_User
0
 
LVL 16

Expert Comment

by:gurutc
Comment Utility
Yes use the delete function in VBS and you should be fixed just at thinkpads_user suggests.  Not looking for points here, just backup up a good answer.

- gurutc
0
 
LVL 90

Expert Comment

by:John Hurst
Comment Utility
@vobicom - Thank you, and I was happy to help.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

771 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

10 Experts available now in Live!

Get 1:1 Help Now