Problems connecting to network

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
Back
Top