permissions map drive script

I just installed a new server (2003rc2) and 13pc (xppro) in a workgroup setup (no domain or AD at all). Have a shared drive (everyone / full permiss) AND added the 2 user names with full permissions too. No passwords at all (except administrator) only 1 machine wants a/the username password (after reboot each time) to reconnect to shared mapped drive. Every other one always immediately connect to ther mapped drive. Since there is no password on user account, am required to connect mapped drive by inserting administrative password and really do not want to do that. Is there a script that I can sit in the sysvol / startup folder (or tell me where) that will map and connect to the shared drive by inserting the username / password? Somethin of the net use version with the admin username and its password for everytime the pc restarts?
rmumm2Asked:
Who is Participating?
 
aissimCommented:
net use X: \\server\shared_folder 123 user:server\admin /persistent

Pretty close =) I should've mentioned the password without the brackets. And you need a space after "X:"

Also, I'm sure it was just a typo...but after the password you have "admin:server\..." - it should be "user:server\..."
0
 
aissimCommented:
net use X: \\servername\sharename <password> user:servername\username /persistent

That command will work to map the drive - beware a savvy user will be able to track down your batch file if they really want to.
0
 
rmumm2Author Commented:
Do i simply run this in the run box or dos prompt or do I have to create a batch and place it in a particular place?
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
aissimCommented:
Either way - it will work from the run line (or command prompt). But probably easier to place it in a batch file and drop it in the Startup folder (or at least a shortcut in the Startup folder).

The other thing that should work, if you didn't want to place it in the Startup folder (where it's easily found), is the following registry key:
HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Run

You'll see other programs there that run at startup; this way you could bury the batch file on the system somewhere and create an entry there that points to it. I've never used a batch file in this Run key before....so I'd test it first...but it should work.
0
 
rmumm2Author Commented:
thanks
to help me with a little more confusion (I am a neophite at this)
if the username was admin and the servername is server and the psw is 123, would it look likt this (I dont know what to do with the <>
net use X:\\server\Shared_Folder <123> admin:server\admin /persistent
in other words, do I include the characters <  > around the psw?
0
 
rmumm2Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.