Rik Van Lier
asked on
The network connection does not exist.
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!
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!
ASKER
is this the same for a vb script? i use this:
' Map network drive script
Set objNetwork = CreateObject("WScript.Netw ork")
objNetwork.MapNetworkDrive "m:" , "\\uranus\****"
objNetwork.MapNetworkDrive "n:" , "\\uranus\****"
objNetwork.MapNetworkDrive "o:" , "\\uranus\****"
objNetwork.MapNetworkDrive "p:" , "\\uranus\****"
of course **** stand for a network share...
' Map network drive script
Set objNetwork = CreateObject("WScript.Netw
objNetwork.MapNetworkDrive
objNetwork.MapNetworkDrive
objNetwork.MapNetworkDrive
objNetwork.MapNetworkDrive
of course **** stand for a network share...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
- gurutc
@vobicom - Thank you, and I was happy to help.
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