Solved

Start scripts

Posted on 2016-08-15
3
45 Views
Last Modified: 2016-08-15
I'm trying to setup a start up script that will map a users folder by there login name but I'm drawing a blank any help would be great.
0
Comment
Question by:Ccheever
3 Comments
 
LVL 38

Expert Comment

by:Adam Brown
ID: 41756806
Mapping drives is best done with Group Policy Preferences in Windows 2008. Preferences allow drive mapping based on group membership and other identifying attributes, and the drive path can utilize environment variables like %logonuser% to denote the user's username in the path. https://technet.microsoft.com/en-us/library/cc770902(v=ws.11).aspx
0
 
LVL 16

Accepted Solution

by:
Spike99 earned 500 total points
ID: 41756859
NOTE: I think it's best not to create a share for each user.  If you have 10 users, that might be OK, but if you have thousands, that will bog down the file server. So, it's best to share the containing folder & not each individual user folder.

So, assuming you have a hidden share, HOME$, on the FileServer for the user's home folders, with one folder for each user, you could write a logon script with this line:
net use H: \\FileServer\Home$\%username%

Open in new window


The %username% variable also works when adding user-specific paths to a user's account properties in AD or when scripting bulk user creation scripts.

For example, a roaming profile share could be added to the Remote Desktop Services "profile path" by just pasting the UNC path using the %username% variable:
\\FileServer\Profiles$\%username%

Open in new window


After you add that line, the actual user name will fill in as soon as you click "Apply."
1
 

Author Closing Comment

by:Ccheever
ID: 41756919
that's what I was looking for thank you
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Raid 6 or Raid 10? 19 127
Server 2008 R2 Datacenter Repair OS 20 38
How to do advance search in Windows 2008? 11 37
SBS 2008 Standard OEL 2 0
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

914 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