Solved

map network drive for users

Posted on 2014-01-19
4
449 Views
Last Modified: 2014-01-25
I need a Net Use command to map a drive specific to users as they logon. What I need is:

NET USE U: \\server\users\"username" so that it will insert the specific "username" as this batch file is run on logon for this specific user. Is this possible? The domain controller is running Server 2003R2 the workstations are running Win 7.

Thanks,
Kent
0
Comment
Question by:KentMiller
4 Comments
 
LVL 17

Accepted Solution

by:
jburgaard earned 500 total points
Comment Utility
NET USE U: \\server\users\%USERNAME%
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
It sounds like a home dir which can auto set/map using user profile settings in AD.

A GPO with a login script
Jburgaard's example is also an option.

IMHO, since you currently have one server and it is R2,I'd recommend you consider domain based shares using DFS/DFS management.

Future transition as you expand will be transparent to the users versus server based shares.
0
 
LVL 24

Expert Comment

by:lionelmm
Comment Utility
I agree with jburgaard, that is quick and easy, just add it to your current logon.bat file -- you say that you need it to run for this "specific" user. So do you mean you only want it to run for this specific user or all users who logon to the server? if only the specific user then use this command instead, let say only for user named joe
if %UserName% == joe net use \\server\users\%USERNAME%
0
 

Author Closing Comment

by:KentMiller
Comment Utility
Worked great. I have three different usergroups that use different multiple drives but all use the assigned 'user' folder as a drive. These Usergroups have a different logon batch file executed through GPO.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now