Net Use

  • Thread starter Thread starter MM User
  • Start date Start date
M

MM User

Hi,

I have been using the net use command previously with no trouble about 2
months (Windows XP Pro), but yesterday I have not been able to access any of
the drives that need a specific password:

net use y: "\\server\allfiles"
net use z: "\\server\securefiles" * /user:securityuser


the all files (y drive) is accessible but not the z drive which needs the
securityuser password.

Any idea what might cause this?

Is there a way to forcibly remove all net shares for the users drive before
connecting with the above bat file?

Thanks!
 
Hi,

I have been using the net use command previously with no trouble
about 2 months (Windows XP Pro), but yesterday I have not been
able to access any of the drives that need a specific password:

net use y: "\\server\allfiles"
net use z: "\\server\securefiles" * /user:securityuser


the all files (y drive) is accessible but not the z drive which
needs the securityuser password.

Any idea what might cause this?

Is there a way to forcibly remove all net shares for the users
drive before connecting with the above bat file?

Thanks!

A couple of things pop into mind.

Windows XP Pro will only allow one set of credentials to be used to
connect to it at any given time. In the above example (assuming that
"server" is the same machine in both lines), the first line will
connect to "server" as either "guest" or the username you are using on
the client machine, then the second line will not accept a connection
as "securityuser" because you are already connected as "guest". You
must disconnect (delete) the first connection before connecting under a
different set of credentials. Simply switching the order of the two
lines will allow you to first connect as "securityuser" and, if
permissions are set up properly, you can then connect to the Y drive
using the same "securityuser" credentials.

Another thing you might try (assuming the two "server"s are different)
is to specify the computer name along with the user name to eliminate
any potential domain name conflicts:

net use z: \\server\securefiles * /user:server\securityuser

HTH,
John
 
Thanks John for the heads up, I will reverse the lines to:

net use z: "\\server\securefiles" * /user:securityuser
net use y: "\\server\allfiles"

As the 'allfiles' folder is accessible to all but the 'securefiles' folder
is only accessible to the 'securityuser'.

Also in the above example am I using 2 sessions or just one (I know Win XP
Pro only allows 5 sessions)

Thanks in advance!
 
Thanks John for the heads up, I will reverse the lines to:

net use z: "\\server\securefiles" * /user:securityuser
net use y: "\\server\allfiles"

As the 'allfiles' folder is accessible to all but the
'securefiles' folder is only accessible to the 'securityuser'.

Also in the above example am I using 2 sessions or just one (I
know Win XP Pro only allows 5 sessions)

Hmmm. I thought XP Pro allowed 10 sessions and XP Home allowed 5.
Anyway, count them yourself...
Right-click "My Computer" -> Manage -> System Tools -> Shared Folders
-> Sessions.

HTH,
John
 
Thanks John for the heads up, I will reverse the lines to:

net use z: "\\server\securefiles" * /user:securityuser
net use y: "\\server\allfiles"

You might also try explicitly deleting any existing connections
net use y: /d
net use z: /d
Also in the above example am I using 2 sessions or just one (I know Win XP
Pro only allows 5 sessions)


I was just reading about this for something else. Apparently for that
XP limitation if station A connects to two drives and a printer on
station B, that's one connection.

Tom
 
Thanks John,

Looks like this means one session from a server is a connection to each PC
(no matter how many drives/folders are mapped or shared to the server)

Thanks!
 
Back
Top