General discussion

Locked

batch file for net log in

By jsarinana ·
I want to be able to map drives from a laptop (Win XP Prof.) that has not joined my Domain, this is for a home user. He is able to VPN and terminal to his computer desktop on our LAN, ping our servers, map manually with his user account. I created a .bat file for him so he can run it to map all his drives but every net use command in the .bat file will ask him for a username and password. Question what net command can I add to the batch file so it will ask him for a username password only once and not have to answer ever net use command within the batch file ?

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Curacao_Dejavu In reply to batch file for net log in

I dont know about the batch file, but if you create an identical account (id+pw) for the user you can use the passtrough feature of windows, so he wont be prompt for a username and pw anymore.

Leopold

Collapse -

by Joseph Moore In reply to batch file for net log in

Say your user needs to map drives to a machine called \\SERVER1 and say you made a user account on that machine called BOB for your user to log in with (and a password of "password"). Put this line at the beginning of the BAT file the user is using:

NET USE \\SERVER1\IPC$ /U:BOB "password"

You see, if you manually authenticate to the IPC$ on the machine that has the shared folders you user wants to map to, then you can make any subsequent NET USE drive mappings to that machine, and you won't be asked for username/password.

If your user is mapping to more than 1 machine, then just manually authenticate to the IPC$ share on each one the same was as I listed above.

hope this helps

Collapse -

by jsarinana In reply to batch file for net log in

Thanks Joseph Moore

OK, user is bob password is pass, server is ksn3 is this may command:

net use \\ksn3\ipc$ /u:bob pass

?

Collapse -

by jsarinana In reply to batch file for net log in

This question was closed by the author

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums