Solved

map network drive for users

Posted on 2014-01-19
4
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Accepted Solution

by:
jburgaard earned 500 total points
ID: 39792793
NET USE U: \\server\users\%USERNAME%
0
 
LVL 78

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 25

Expert Comment

by:Lionel MM
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 DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Suggested Solutions

My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
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…
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…

751 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