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
264 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
3 Comments
 
LVL 7

Accepted Solution

by:
sj_hicks earned 125 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

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
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, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

13 Experts available now in Live!

Get 1:1 Help Now