dcarr
(Getting the hang of it)
2004-06-10 11:12 AM
Mappings not working correctly, please help?

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?


Richard H.Administrator
(KiX Supporter)
2004-06-10 11:40 AM
Re: Mappings not working correctly, please help?

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.


dcarr
(Getting the hang of it)
2004-06-10 12:50 PM
Re: Mappings not working correctly, please help?

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?


LonkeroAdministrator
(KiX Master Guru)
2004-06-10 01:10 PM
Re: Mappings not working correctly, please help?

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?


dcarr
(Getting the hang of it)
2004-06-10 01:14 PM
Re: Mappings not working correctly, please help?

S orry that was a typing error the quotes are at the end.

Problem still persists?


Richard H.Administrator
(KiX Supporter)
2004-06-10 01:42 PM
Re: Mappings not working correctly, please help?

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.


dcarr
(Getting the hang of it)
2004-06-10 03:27 PM
Re: Mappings not working correctly, please help?

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?


Richard H.Administrator
(KiX Supporter)
2004-06-10 03:52 PM
Re: Mappings not working correctly, please help?

Code:
%0\..\kix32 /f %0\..\livscript.kix



Should do it.


dcarr
(Getting the hang of it)
2004-06-10 04:39 PM
Re: Mappings not working correctly, please help?

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?


Richard H.Administrator
(KiX Supporter)
2004-06-10 05:00 PM
Re: Mappings not working correctly, please help?

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.


NTDOCAdministrator
(KiX Master)
2004-06-10 06:34 PM
Re: Mappings not working correctly, please help?

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.


Kdyer
(KiX Supporter)
2004-06-11 07:12 AM
Re: Mappings not working correctly, please help?

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