Mapping drives using default domain profile

Posted on 2007-10-04
Last Modified: 2010-03-17
I am trying to map network drives for domain users. I would like to be able to do it by default domain profile. I have created a batch file and copied it under Scripts folder under SYSVOL and I can verify that it is also in NETLOGON share of the DC.

Any ideas? Any help is appreciated

Question by:ArzuGould
    LVL 30

    Expert Comment

    Can you elaborate on what you mean when you say that you want to "be able to do it by default domain profile"?  Drive mappings are typically done via login script, since user credentials are required to access most network shares.

    You can assign login scripts to users en masse through Group Policy, and then map the necessary drives as described here:
    LVL 70

    Accepted Solution

    You can do it via the default profile id the mapped drives are going to be the same for all users
    Set up a dummy user account, log on using this account and set up the desktop, menus shortcuts, screen savers, map drives etc and all the other stuff that you want to standardize for new users. When all is to your liking, log off from the dummy account.

    You can then copy the profile you have just created so that it becomes the default for all new users. To do this you need to log on as an administrator, You will first need to go to the Control Panel, and in Administrative tools, Folder Options, on the View Option make sure that the option to Show Hidden Files and Folders is selected. It is also a good idea to make sure that the Hide Extensions for known file types is NOT selected so you can identify files more easily later on.

    Then exit the control panel. Right click on My Computer and select Properties, Advanced, and click on SETTINGS under User profiles. Select the dummy profile and then COPY TO another user option. Copy the dummy profile to C:\Documents and Settings\Default User making sure that you change the 'Permitted to use' option to 'Everyone' so that the new users will have the necessary permissions on the profile. Confirm the action replacing the existing default profile when prompted.

    All new accounts will have the profile copies to them together with the mappings.

    Possible Disadvantagea: All the mapped drives are the same for all users.
    If they disconnect a mapped drive it will not get reconnected automatically

    Author Comment

    Thanks a lot.
    I have chosen to do it via GPO. I have created the GPO and it is linked to the right OU. Could you help me with the scripting part please. I have created a bat file as follows:
    net use N: \\%servername%\sharename
    net use M: \\%servername%\sharename
    how should I edit the vbs file?
    LVL 30

    Expert Comment

    There's no specific requirement to use a VBS file.  Save this as "login.bat" and configure this as your login script via GPO - use the "Show Files" button to save the BAT file to the appropriate location.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    My last post dealt with using group policy preferences to set file associations, a very handy usage for a GPP. Today I am going to share another cool GPP trick, this may be a specific scenario but I run into these situations frequently in my activit…
    This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
    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 walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    755 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

    19 Experts available now in Live!

    Get 1:1 Help Now