?
Solved

Login script for Win2003 Server using the IF condition to determine if a user is in a group or not to map network drives

Posted on 2004-09-23
3
Medium Priority
?
270 Views
Last Modified: 2012-06-21
Hi

I want to map network drives based on if a user is in a particluar user group in AD . I guess using the login script ie dos bacth file , net use command

ie I gave a user group called sales

I login as joe bloggs who is in the sales group in the local domain  . The login script does a if statement to determine if Joe Bloggs is in that group or not

ie  " if  "user" Part of  "  Sales Group" Then
              net use L: \\Server\Share
                 else
                  End


Ie something like that I suppose ???

Also can ths work across multiple domains ? ie map a drive to another share on a another server in a different Domain ?


 
 
0
Comment
Question by:Davidedi
[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
3 Comments
 
LVL 7

Accepted Solution

by:
sj_hicks earned 375 total points
ID: 12140066
The IFMEMBER utility included in the NT/2000 resource kit will do this.  See info at http://www.win2000mag.com/Articles/Index.cfm?ArticleID=5869

An alternative to using a batch file login script is to use a VBScript.  Do a web search and you should find plenty of samples.

You should be able to map drives across domains providing the appropriate trusts are in place.
0
 

Expert Comment

by:kdb01
ID: 12140151
Might help ??? I create containers (OU), I just put a straight dos batch with the proper net use in the container i want to give the specific shares to. I keep the groups to assign access rights only. Makes my life easier. I used to use the IFMember utility back in winNT4 and it works fine.  
0
 
LVL 3

Expert Comment

by:onesquin
ID: 12146214
Remember with login scripts... LESS IS MORE.  If loops and that are great... BUT if you can break it down into OUs and assign login scripts to each OU group logins will be quicker and less complex.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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