Network reader: error 1219

berthelotn Posted messages 154 Registration date   Status Membre -  
 cyberic -
Hello,

I have a network drive connection problem, I am working on XP Pro and Windows Server 2003.

I want to map network drives at the start of a session, so I wrote a .bat file.

net use * /delete /yes
net use W: \\Server\ "password" /USER:"login"

and configured the account to run the script at startup; however, I'm getting the following error:

The system error 1219 has occurred.

Multiple connections to a server or shared resource by the same user, using more than one username, are not allowed. Disconnect all previous connections to the server or shared resource and try again.

(I know similar issues have already been resolved, but none of the responses have helped me resolve my error.)

Thank you in advance for any information you can provide.

10 réponses

kimojo Posted messages 402 Status Membre 41
 


NET USE * /DELETE /YES
NET USE u: \\MACHINE\DIRECTORY /PERSISTENT:YES /user:truc password
2
kimojo Posted messages 402 Status Membre 41
 
1
cyberic
 
I have the same problem, and I found the solution. Well, I know I'm digging up the subject, but since Google directed me to this post, I wanted to share.

Run the command net use without any parameters, and it will display all the active connections.
Normally, we have something like:

X: \\server\myshare

But for some reason, I don't know, we only have the path of the share
\\server\myshare

The drive is no longer mapped but the connection is still active, and we need to exceed the allowed number of connections.
Just do a net use /d \\server\myshare, and that frees up the resource.

That's it for the information.
1
kimojo Posted messages 402 Status Membre 41
 
Hi,

Quick question:
Why did you write a .bat? I used tool > connect a network drive. Every time I start, my network drives are always there.

So when you use my method, do you get the same error?
0
berthelotn Posted messages 154 Registration date   Status Membre 11
 
Thank you for responding so quickly,

I want to create a script because I want the people using the sessions not to have to connect the network drives themselves, especially since most of them don't know anything about computers.

I forgot to mention in my post that when I run the script manually, the drives connect.

(I even tested delaying the execution of the script, but nothing changes.)
0
kimojo Posted messages 402 Status Membre 41
 
The script works when you run it manually, but it doesn't work when it's automated?

If that's the case, I can't help you, I don't understand why it doesn't work.
0
berthelotn Posted messages 154 Registration date   Status Membre 11
 
Here is how I test

the script is on the server when I start my session it informs me of error 1219

I made a copy of my .bat on my desktop I run it and there everything works

ok well too bad if you don't see

If anyone else sees where the problem might come from I'm interested
0
berthelotn Posted messages 154 Registration date   Status Membre 11
 
same result

/PERSISTENT:YES : allows forcing the setup of the network reader ??????
0
berthelotn Posted messages 154 Registration date   Status Membre 11
 
Thank you for your research; however, I have already come across it before posting here.

The first link doesn't apply to me because the script works on my desktop; it's the transition to the logon script that is causing the bug.

What I don't understand is why when running a command line (via a script) I get an error, but then when I rerun the same script manually, there is no error.

Thank you very much for your research and for your help.
0
berthelotn Posted messages 154 Registration date   Status Membre 11
 
no one has any other ideas
0