Networking Issue

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
C

CJ Taylor

Hey all,

Was wondering if anyone could answer a question using the Windows Scripting
Host to use the Win32API to connect to a network share on an NT server.

The problem I am having is that I am trying to connect as a different user
that throws up an error upon connection, that says

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

So I understand why, I have 2 accounts I'm trying to connect to the same
server with. But I don't want to disconnect all my network drives when I
want this to happen. So is there a way to do this within windows forms?

Thanks,
cJ
 
CJ Taylor said:
Was wondering if anyone could answer a question using the Windows
Scripting Host to use the Win32API to connect to a network share on
an NT server.

The problem I am having is that I am trying to connect as a different
user that throws up an error upon connection, that says

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

So I understand why, I have 2 accounts I'm trying to connect to the
same server with. But I don't want to disconnect all my network
drives when I want this to happen. So is there a way to do this
within windows forms?

Maybe I misunderstood, but in what way is this question related to VB.NET?
 
Fair enough.. I figured it out.. in order to connect to the same server with
different network credintials you actually have to connect to two different
"versions" of the server.

i.e.. 1 with the DNS name, and 1 witht he ip address...

such that

net use p: \\fs\apps /user:mydomain\myusername password
and
net use p: \\192.168.1.100 /user:mydomain\myotherusername password

and it works...

Theoritcally, couldn't you just keep assigning IP's? and have multiple
connections?


hmmmm

-CJ
 
So did I. =)

Was just wondering if anyone else encountered something similar... and you
all are "my peeps."

So I thought I would ask first... mainly to see if anyone had a better
method.

-CJ
 
Hey all,

Was wondering if anyone could answer a question using the Windows Scripting
Host to use the Win32API to connect to a network share on an NT server.

The problem I am having is that I am trying to connect as a different user
that throws up an error upon connection, that says

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

So I understand why, I have 2 accounts I'm trying to connect to the same
server with. But I don't want to disconnect all my network drives when I
want this to happen. So is there a way to do this within windows forms?

Thanks,
cJ

You don't have to disconnect (unmap) all mapped drives and sessions.
You only have to remove the sessions connected to that particular
[named] host. (See "NET USE" command)

Changing or removing the credentials of a session to another computer
makes administration and support very tricky. You should avoid it.
Can't you find another way?

In the meantime, you might find this useful:
(MSKB 173199)
http://support.microsoft.com/defaul...port/kb/articles/q173/1/99.asp&NoWebContent=1


Rgds,
 
Back
Top