Autologon onto server shares

chronic9

Supreme [H]ardness
Joined
Aug 18, 2004
Messages
5,854
I used to have this awesome script that would run at system startup and it would auto login into my server shares... the reason I need this is Win 7 wont store my network PW.... ever

i tried adding it to the list in control panel ~~~~ user accounts ~~~~ and whatever is the name of that tab, didnt help

someone mind sharing a script that would connect automatically with provided username/PW?

thnx
 
Heres a batch file that works for an office I manage, mostly XP, but 2 Win7 laptops.


@ECHO OFF
rem * Set title and window configuration
title X Drive connection to SERVER...
mode con cols=75 lines=3
color 1B

net use X: /D
Net Use X: \\SERVER\SHARE /User:SERVER\USER PASSWORD
 
What about the "/PERSISTENT:YES" syntax on the NET USE command? Will that achieve the same thing, or will that do it for all users?

EDIT: Spelling of PERSISTENT.
 
Last edited:
i remember using net use in my previous script a while back... but ill try DBwillis script...

thnx!
 
for some reason i always get error 53... says it cant find the network path... but its there, when i copy and paste the directory....
 
If you have spaces in the name of your share you will need to put quites around it:

net use q: "\\server\my share"
 
Back
Top