Solved

Mapping network drivers usign Group Policy

Posted on 2004-09-06
3
353 Views
Last Modified: 2006-11-17
Hello,
We are planning the migration to windows 2003.

Currently we have twenty differents nt 4.0 domains. The thing is that we are using .bat files to map the network drivers to Domain users. Our idea is to use Group Policy to Map the Network drivers for each user and if possible to avoid to use .bat files. We know that is possible to achieve this using Visual basic scripts. But we have the doubt if it is possible to map usign Group Policy. Obviosly it will be necessary to take in account the site where the user is logging in, in order to map the drivers to the file server in the site where the user is.
Is there any way to map the NetWork drivers usign Group Policy ?
Based in your experience, do you advice to use this method to map drives ?
What it will happend with the users with portables computers ?

Thanks in advance
0
Comment
Question by:intentalo69
3 Comments
 
LVL 15

Expert Comment

by:adamdrayer
ID: 11990855
In group policy, you can specify login/logoff scripts as well as startup/startdown scripts.  You can use batchfiles, vbscript, javascript, etc..
0
 
LVL 104

Accepted Solution

by:
Sembee earned 250 total points
ID: 11991373
Users with portable computers will only get the login script when they actually login to the network from the CTRL-ALT-DEL prompt. So if they come in remotely after logging in, or bring their machines in on suspend then the script will not run.
With some coaching you can get them to login at the CTRL-ALT-DEL prompt from remote when available via dial up or VPN.

You can only map network drives by GP calling another script. You will either be stuck with batch files or have to move on to another technology. It depends where your skills are.
With a properly crafted batch file (s) you can have a single file or files that take in to account location, groups etc and map drives accordingly. Microsoft have provided a large amount of command line tools for tasks like these.
If users are moving around, then controlling the mapping from GP isn't practical, unless you are placing the laptop users in to a special group that runs a different script that identifies where they are first and acts accordingly.

For example you could have three scripts...

New York
London
Mobile

New York runs for all users in New York static (desktops - perhaps allocated per machine instead of user).
London runs for all users in London (as per New York)
Mobile first identifies where the user is then calls either the New York or London script as required.

If you and your colleagues have built up a skill level with batch files then don't throw it away. While GP can do many things, there is still a place for command line tools in network management.

Simon.
0
 

Author Comment

by:intentalo69
ID: 11995825
Hello Simon,
However, It is possible to create a Script usign Visual basic, kix, etc.,using variables referencing to differents groups. For example It is possible to create an script, using IF
command in order to assign the Name Server string to a variable in order to map
the server, etc.

In NT 4.0 domains, I think It is possible to assign a .bat fle to an user usign USER MANAGER console. but I think It is only possible to assign one. If want to run more than one script file for user, It is necessary to include the reference to that other script inside the main .bat file . Isn´t it?

In Windows 2000/windows 2003 domains. It it possible to apoly log in/log off scripts usign group Policy. I have these questions:

-  We create a generic script (with variables, IF, etc) to be able to assign server,printers,
depending where the user are (I am talking about the users with desktops, who are always in the same site) and apply this script to High Level OU (for example business unit OU). I am worry because with 7000 users, if I need to assign the servers, printers using IF, variables. Will it not happen that the logon process will be slow (Imagine 7.000 users, and grouping for users (using Security groups) in the same site in order to be able to use "IF"  and assign file servers names to map network drives, and a lot of sites with files servers). In your experience, do you think this a correct way?

- In windows 2003 if there are several .bat files in SYSVOL folders. does the user who log in process all script in this folder or only the scripts who are assigned through Group Policy or User properties?










0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sharing same loopback address on different switches 1 48
How to Create Separate Guest WiFi VLAN on Netgear R8000 19 94
Wired Network vs Wireless 12 66
nested esxi, NIC issues 1 34
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

828 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