Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

permissions map drive script

Posted on 2007-08-09
6
Medium Priority
?
245 Views
Last Modified: 2010-04-18
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?
0
Comment
Question by:rmumm2
  • 3
  • 3
6 Comments
 
LVL 19

Expert Comment

by:aissim
ID: 19662885
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
 

Author Comment

by:rmumm2
ID: 19666567
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
 
LVL 19

Expert Comment

by:aissim
ID: 19666734
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:rmumm2
ID: 19666755
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
 
LVL 19

Accepted Solution

by:
aissim earned 500 total points
ID: 19666826
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
 

Author Comment

by:rmumm2
ID: 19666850
thanks
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question