Solved

map network drive for users

Posted on 2014-01-19
4
451 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
ID: 39792793
NET USE U: \\server\users\%USERNAME%
0
 
LVL 77

Expert Comment

by:arnold
ID: 39792829
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
ID: 39794108
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
ID: 39809001
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

911 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

23 Experts available now in Live!

Get 1:1 Help Now