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 7 2642
"CJ Taylor" <no****@blowgoats.com> schrieb 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?
--
Armin http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
I'm using VB.NET to write it. =)
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... "CJ Taylor" <no****@blowgoats.com> schrieb 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?
-- Armin
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
"CJ Taylor" <no****@blowgoats.com> schrieb I'm using VB.NET to write it. =)
"Armin Zingler" <az*******@freenet.de> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... "CJ Taylor" <no****@blowgoats.com> schrieb 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?
-- Armin
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Sorry, I didn't find the VB.NET part. ;-)
--
Armin http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
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
"Armin Zingler" <az*******@freenet.de> wrote in message
news:ue**************@TK2MSFTNGP11.phx.gbl... "CJ Taylor" <no****@blowgoats.com> schrieb I'm using VB.NET to write it. =)
"Armin Zingler" <az*******@freenet.de> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... "CJ Taylor" <no****@blowgoats.com> schrieb > 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?
-- Armin
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Sorry, I didn't find the VB.NET part. ;-)
-- Armin
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
* "CJ Taylor" <no****@blowgoats.com> scripsit: Fair enough.. I figured it out.. in order to connect to the same server with
I always thought VB.NET <> Windows Scripting Host.
:-)
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bo*************@ID-208219.news.uni-berlin.de... * "CJ Taylor" <no****@blowgoats.com> scripsit: Fair enough.. I figured it out.. in order to connect to the same server
with I always thought VB.NET <> Windows Scripting Host.
:-)
-- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
On Tue, 11 Nov 2003 13:51:22 -0600, "CJ Taylor" <no****@blowgoats.com>
wrote: 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/default...NoWebContent=1
Rgds, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: hyperbob |
last post by:
Hello,
I'm in the design stage of an application that will consist of two or more processes that will be either on different computers in a network or on the same computer and will have to...
|
by: James Egan |
last post by:
I've seen some networking toolkits for C++, but was wondering
if there were (or plans for) a standard set of networking
classes for C++?
Also, can someone tell me where I can find a...
|
by: Brian Keogh |
last post by:
Hi,
I'm a student learning TCP/IP networking at University. Although I
understand all about TCP/IP Networking in Java I am expected to understand
the basics of C with regard to these programs as...
|
by: H.A. Sujith |
last post by:
Why doesn't the standard library provide (at least basic)
networking facilities using TCP/IP ?
|
by: Raj |
last post by:
I want to program C with networking. Can anyone tell me the How to
start with a small simple program can it possible in turbo/borland c
3+. or i should go for
another verson. i am using windows...
|
by: petro |
last post by:
I am trying to deploy an asp.net application to my web server. My
application uses system.data.oledb to connect to an oracle database. On my
development machine I have the oracle client 10g...
|
by: NickP |
last post by:
Hi there,
I've been experiencing a strange issue for a short while now and have
managed to make a tiny replication of the bug.
The uploaded a VB.NET 2005 project which implements a single...
|
by: chinaemerem ibeawuchi |
last post by:
What is the difference between URL networking and Socket networking? with an example of each type and state why the choosen networking technique is most appropriate for the example.
|
by: prometheuzz |
last post by:
Hello all,
There's this problem I have, which I am unable to find a solution for. The problem is this: I cannot post messages with a specific size on (certain) forums. I hear you thinking: what...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |