Problems connecting to network

G

Guest

Hi,

I need to automate the connection of a network drive, but am having problems
with this. I am using minlogon, and have tried

net use s: \\server\share uname pass

from a bat file, but it still asks for the password, even though i give it.

I then tried :

WNetAddConnection2 API call, but this will not connect me to another
computer using new credentials.

Would adding a new user with a password help, but could i make it then login
automatically, and map the drive?

It seems to me to be a problem with the security side of things.

Cheers
elvis
 
L

Lasse

Elvis said:
Hi,

I need to automate the connection of a network drive, but am having problems
with this. I am using minlogon, and have tried

net use s: \\server\share uname pass

from a bat file, but it still asks for the password, even though i give it.

I then tried :

WNetAddConnection2 API call, but this will not connect me to another
computer using new credentials.

Would adding a new user with a password help, but could i make it then login
automatically, and map the drive?

It seems to me to be a problem with the security side of things.

Cheers
elvis
I am using minlogon, and I connect without using username or password.
I never got it to work when connecting from system account (minlogons default).
My custom shell logs on as a user before connecting.
Username and password are the same as on the machine connect is made to.
Both net use and the API should work. (with the conditions above)

Lasse.
 
K

KM

Elvis,

Hi,

I need to automate the connection of a network drive, but am having problems
with this. I am using minlogon, and have tried

net use s: \\server\share uname pass

Doesn't that have to be something like:
net use s: \\server\share /USER:uname pass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top