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
266 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.   …
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

815 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

9 Experts available now in Live!

Get 1:1 Help Now