samiam41
asked on
Drive mapping by group membership
Here are the parameters of this question.
1- The G drive needs to be mapped based on the user's group membership
2- The departments are shared out using the department name (ie, Legal)
3- If the user is apart of multiple groups, map the first group (or whatever is easiest)
Let me know what other information you may need. I have been working on this for a couple of days and am done trying it on my own. I figured I would let the experts show me how it's done. Thanks in advance.
1- The G drive needs to be mapped based on the user's group membership
2- The departments are shared out using the department name (ie, Legal)
3- If the user is apart of multiple groups, map the first group (or whatever is easiest)
Let me know what other information you may need. I have been working on this for a couple of days and am done trying it on my own. I figured I would let the experts show me how it's done. Thanks in advance.
ASKER
My scripting skills are basic as best. I am a network and firewall guy trying to expand my scripting skills. Can you give more detail on the script that I would need for the ifmember command?
Use kixstart to create the login script. You can then map the drives by group membership on any host operating system without any runtime.
http://www.kixtart.org/
http://www.kixtart.org/
ASKER
Let me look into that suggestion this morning and will post a reply. Thanks for the suggestions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have forgoten ...
Open your user properties and set the loginscript.bat as the login script.
Open your user properties and set the loginscript.bat as the login script.
if the kix script didnt close, put and "exit" statement in the last line.
Download:
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
The resource kit has a program called IFMEMBER, which you can use in your login script logic. IFMEMBER works by checking for membership in a group and returning an ERRORLEVEL hence you'll have a bunch of IF THENS. Codesegment section:
:its
ifmember itsgrp
if not errorlevel 1 goto hrgrp
net use u: \\server1\itsshare$
:hrgrp
ifmember hrgrp
if not errorlevel 1 goto secgrp
net use u: \\server1\secshare$
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
The resource kit has a program called IFMEMBER, which you can use in your login script logic. IFMEMBER works by checking for membership in a group and returning an ERRORLEVEL hence you'll have a bunch of IF THENS. Codesegment section:
:its
ifmember itsgrp
if not errorlevel 1 goto hrgrp
net use u: \\server1\itsshare$
:hrgrp
ifmember hrgrp
if not errorlevel 1 goto secgrp
net use u: \\server1\secshare$
ASKER
With our network environment still a based on Windows NT4 PDC+BDC (yes we are working on migrating it now), using Kixtart looks most promising. I appreciate the posts MoSBS!
IFMEMBER works with NT4 as well.
ASKER
Just as a quick update, ifmember kicks-@ss!!
The simplest solution I have found is to use ifmember.exe
Mo