Page 1 of 1 1
Topic Options
#47977 - 1999-07-29 04:21 PM Mapping drives dependent on group membership
Anonymous
Unregistered


I currently use ifmember.exe to map drives dependent on grp. membership in NT. However this doesn't work on 95 clients. How do I write a script with Kixtart that would work across NT and 95 platforms? Here's my current script.

ifmember quadmed
if not errorlevel 1 goto notquad
net use l: \\server_quad\quadramed /persistent:no
:notquad

Thanks for your help


Top
#47978 - 1999-07-30 01:43 AM Re: Mapping drives dependent on group membership
Anonymous
Unregistered


You can use this script to use on NT and w95:

If ingroup("quadmed")
use L: "\\server_quad\quadramed"
EndIf

------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com



Top
#47979 - 1999-07-31 12:58 AM Re: Mapping drives dependent on group membership
Anonymous
Unregistered


Does the kixtart rpc service have to be installed on all controllers for NT logons? or is this just for 95 logons? Also do I have to write the script and put a .kix extension on it? This is my batch file called john.bat, the ingroup call doesn't seem to be executing is this written correctly?

Rem john.bat logon script
%0\..\Kix32.exe

REM Map Enterprise Drive (G
echo Mapping your G: Drive
net use g: \\server_common\g /persistent:no

REM Microsoft Systems Management Server (start)
REM SMS Build 1239
call %0\..\smsls
REM Microsoft Systems Management Server (end)

pause
If ingroup("quadmed")
use L: "\\server_quad\quadramed"
EndIf
pause

Top
#47980 - 1999-08-07 12:00 AM Re: Mapping drives dependent on group membership
Anonymous
Unregistered


i like the one below. i have a different script for each group. This script steps through all of the scripts of groups the user is a member of. Some of them just say RETURN.

$index=0

do

$group = enumgroup ($index)
if len($group)
call @lserver + "\netlogon\groups\" + $group + ".scr"
$index=$index+1
endif

until
len ($group) = 0

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2312 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.087 seconds in which 0.066 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org