Page 1 of 1 1
Topic Options
#121004 - 2004-06-10 11:12 AM Mappings not working correctly, please help?
dcarr Offline
Getting the hang of it

Registered: 2004-05-10
Posts: 62
I have created a logical drive known as "M:\Marketing".
On the drive I have created two shares known as:

NW_Evnt_Dept
and
NW_Mktg_Dept

I am using kixscripsts to map to the drives from W9x client machines.

The two shares exist for two different departments.

The first share I created was NW_Mktg_Dept, and I mapped the drive as shown below:

If INGROUP (nw2_mktg_dept) Mapdrive ("M:","\\nw-data-store1\nw_mktg_dept) endif

I then created the second share and mapped the drive as follows:

If INGROUP (nw2_evnt_dept) Mapdrive ("H:","\\nw-data-store1\nw_evnt_dept) endif

When I assign users to this group the mapping does not work? Any ideas why?

Top
#121005 - 2004-06-10 11:40 AM Re: Mappings not working correctly, please help?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Is the mapping failing or the InGroup() not firing?

  1. Flush the cache (kixtart /f)
  2. Add a debug message to check the the new InGroup is working.
  3. Check the error return from the "USE" in your MapDrive UDF.

Top
#121006 - 2004-06-10 12:50 PM Re: Mappings not working correctly, please help?
dcarr Offline
Getting the hang of it

Registered: 2004-05-10
Posts: 62
Please excuse my ignorance.

Where abouts, when using W9x clients, should I place the -d

%0\..\kix32 %0\..\livscript.kix

I have tried after kix32 and after livscript.kix but the script will not run in debug mode?

Top
#121007 - 2004-06-10 01:10 PM Re: Mappings not working correctly, please help?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it looks so obvious:
Quote:

If INGROUP (nw2_mktg_dept) Mapdrive ("M:", "\\nw-data-store1\nw_mktg_dept ) endif

I then created the second share and mapped the drive as follows:

If INGROUP (nw2_evnt_dept) Mapdrive ("H:", "\\nw-data-store1\nw_evnt_dept ) endif






where is that missing quote?
_________________________
!

download KiXnet

Top
#121008 - 2004-06-10 01:14 PM Re: Mappings not working correctly, please help?
dcarr Offline
Getting the hang of it

Registered: 2004-05-10
Posts: 62
S orry that was a typing error the quotes are at the end.

Problem still persists?

Top
#121009 - 2004-06-10 01:42 PM Re: Mappings not working correctly, please help?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Eh? What "-d"?

Use /f (or -f) to flush the group membership cache.

The debug message does not need debug mode - you just want to insert a temporary message so that you can determine whether the InGroup() is processing or not.

If your MapDrive UDF outputs messages then this will suffice.

Top
#121010 - 2004-06-10 03:27 PM Re: Mappings not working correctly, please help?
dcarr Offline
Getting the hang of it

Registered: 2004-05-10
Posts: 62
Hi Rich,

Were do you place the /f to flush the membership?

I have monitored the script and it does not even attempt to map the drive?

Top
#121011 - 2004-06-10 03:52 PM Re: Mappings not working correctly, please help?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Code:
%0\..\kix32 /f %0\..\livscript.kix



Should do it.

Top
#121012 - 2004-06-10 04:39 PM Re: Mappings not working correctly, please help?
dcarr Offline
Getting the hang of it

Registered: 2004-05-10
Posts: 62
Thanks for that Rich. I tried it but still no success?

Can kix map to multiple shares on the one logical drive?

It looks as though everything is right on the server with regards to permissions, group namings, etc?

Top
#121013 - 2004-06-10 05:00 PM Re: Mappings not working correctly, please help?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You need to determine what the error is first.

If the InGroup() is not working, then the issue is not with the mapping, but rather with the group membership check, and you will need to fix that first.

Just run a simple script with the failing user:
Code:
If InGroup("....whatever group")
"Am in group" ?
Else
"Am not in group" ?
EndIf



Once the group check is working you can worry about the drive mapping.

Check that your old and new groups are the same type i.e. Local vs Global.

Top
#121014 - 2004-06-10 06:34 PM Re: Mappings not working correctly, please help?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Quote:

KiXtart 2001 4.22 (Copyright Ruud van Velsen 2003)
Microsoft Windows (logon) script processor.

Note: KiXtart is CareWare, please consult the manual for full details
on distribution and licensing.

Usage :

KIX32 [script1] [...] [$var=123] [/f[:yyyy/mm/dd]] [/r:irel] [/d]

Options:
/f = flush token cache (optionally only if older than date specified)
/r = KXRPC search order (see manual for details)
/d = enable debug mode





As I read it, it should be:
%0\..\kix32 %0\..\livscript.kix /f

But I'm sure either way works just fine. Thanks for making KiXtart so easy Ruud.

Top
#121015 - 2004-06-11 07:12 AM Re: Mappings not working correctly, please help?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What Doc references is talked about in a Microsoft Knowledgebase article too - A Logon Script Does Not Work If %0 or %0\..\ Calls Multiple Commands

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


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

Who's Online
0 registered and 329 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.059 seconds in which 0.025 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