Page 1 of 1 1
Topic Options
#44294 - 2003-08-20 05:10 PM Could use some help / advice please
nirvanagod Offline
Fresh Scripter

Registered: 2003-08-20
Posts: 5
Loc: USA
good day to all

I have just recently started using kixtart in our organization and i'm am having a problem that is fustrating me to no end. All i'm looking to do is map user/group specific drives based on group membership, i have read through the manual, read what i could dig up on this forum and talk to friends who know more about scripting than I. Yet for some reason i can't seem to get the script to work. I will post below for everyone to check out and hopefully give me an idea of what i'm doing wrong. TIA

-----------------------------------------------

;Maps User Specific Drive

Use U: @HOMESHR

;This Section Used Map Group Specific Drives

;Administration
If InGroup ("Administration") = 0
Use z: \\binkley\Administration$
EndIf
;Adult Basic Learning Education
If InGroup("ABLE") = 0
Use z: \\binkley\ABLE$
EndIf
;Athletic Health Care
If InGroup("AHC") = 0
Use x: \\binkley\AHC$
EndIf
;Business Career Technology
If InGroup("BCT") = 0
Use r: \\binkley\bct$
EndIf
;Career Based Transitions
If InGroup("CBT") = 0
Use w: \\binkley\CBT$
EndIf
;Cisco Networking Academy
If InGroup("Cisco") = 0
Use k: \\binkley\cisco$
EndIf
;Colonel
If InGroup("colonel") = 0
Use v: \\binkley\colonel$
EndIf
;Computer Aided Design
If InGroup("CAD") = 0
Use j: \\binkley\CAD$
EndIf
;Computer Software Applications
If InGroup("CSA") = 0
Use v: \\binkley\CSA$
EndIf
;Cooperative Business Education
If InGroup("CBE") = 0
Use z: \\binkley\CBE$
EndIf
;Cosmetology
If InGroup("Cosmetology") = 0
Use k: \\binkley\cosmetology$
EndIf
;Desktop Publishing
If InGroup("DP") = 0
Use l: \\binkley\DP$
EndIf
;Electronics
If InGroup("Electronics") = 0
Use n: \\binkley\electronics$
EndIf
;English
If InGroup("English") = 0
Use o: \\binkley\English$
EndIf
;Foreign Language
If InGroup("FL") = 0
Use p: \\binkley\FL$
EndIf
;Future Directions
If InGroup("FD") = 0
Use q: \\binkley\FD$
EndIf
;Guidance
If InGroup("Guidance") = 0
Use j: \\binkley\Guidance$
EndIf
;Health Career Technologies
If InGroup("HCT") = 0
Use r: \\binkley\HCT$
EndIf
;Math
If InGroup("Math") = 0
Use v: \\binkley\Math$
EndIf
;Multimedia
If InGroup("multimedia") = 0
Use m: \\milo\multimedia$
EndIf
;Remodeling & Construction
If InGroup("RC") = 0
Use r: \\binkley\RC$
EndIf
;Science
If InGroup("science") = 0
Use w: \\binkley\science$
EndIf
;Secretaries
If InGroup("secretary") = 0
Use s: \\binkley\secretary$
EndIf
;Social Studies
If InGroup("SS") = 0
Use x: \\binkley\SS$
EndIf
;Students (Generic Student User)
If InGroup("students") = 0
Use s: \\Binkley\student$
EndIf
;Teacher(Generic Teacher User)
If InGroup("teacher") = 0
Use t: \\Binkley\Teacher$
EndIf
;Topics In Science
If InGroup("TIS") = 0
Use z: \\binkley\TIS$
EndIf
;Transportation
If InGroup("Transportation") = 0
Use t: \\binkley\transportaion$
Use y: \\binkley\Users$
Use z: \\binkley\elt$
EndIf
;Urban Forestry
If InGroup("UF") = 0
Use v: \\binkley\UF$
EndIf
;Yearbook
If InGroup("Yearbook") = 0
Use y: \\milo\yearbook$
EndIf
Exit

------------------------------------------
Again thanks in advance for any help the you guys can offer

Top
#44295 - 2003-08-20 05:15 PM Re: Could use some help / advice please
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Does doubling-up on the dollar signs help, ex:

\\binkley\bct$$

-Shawn

Top
#44296 - 2003-08-20 05:22 PM Re: Could use some help / advice please
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Plus, change your InGroups to:

If InGroup("Yearbook") = 1

or just:

If InGroup("Yearbook")

Top
#44297 - 2003-08-20 05:22 PM Re: Could use some help / advice please
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Plus, change your InGroups to:

If InGroup("Yearbook") = 1

or just:

If InGroup("Yearbook")

Top
#44298 - 2003-08-20 05:25 PM Re: Could use some help / advice please
nirvanagod Offline
Fresh Scripter

Registered: 2003-08-20
Posts: 5
Loc: USA
As for the path, the $ is there only because the share is a hidden one, and with the ingroup command i've tried it both ways. neither has worked so far
Top
#44299 - 2003-08-20 05:27 PM Re: Could use some help / advice please
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Are you running this on Windows 9x and if so, is the KXRPC service installed and running on all your domain controllers ?
Top
#44300 - 2003-08-20 05:30 PM Re: Could use some help / advice please
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Trace to see if your InGroups are working. Put the following tracer statements inside one of your InGroups:

If InGroup("WhatEver")

?"Its working..."

Use x: \\binkley\AHC$

?"ERROR: @ERROR : @SERROR"

Endif

Top
#44301 - 2003-08-20 05:32 PM Re: Could use some help / advice please
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
And the UNCs need to be in quotes, too. BTW, this is all explained in the KiXtart Manual, including examples.
code:
IF INGROUP('ABLE')
USE Z: '\\binkley\ABLE$$'
ENDIF

You cannot use the Z: drive to map drives under Windows 9x. You need to install the KiXtart RPC Server service for Win9x support.

Please read the complete FAQ Forum as it contains valuable help, especially for beginners.
_________________________
There are two types of vessels, submarines and targets.

Top
#44302 - 2003-08-20 05:35 PM Re: Could use some help / advice please
nirvanagod Offline
Fresh Scripter

Registered: 2003-08-20
Posts: 5
Loc: USA
Yes we do have 9x clients in our domain, as for the rpc service it is running on our primary dc, we have a secondary replicator dc which is not running the service, would it be advised to install it there as well?
Top
#44303 - 2003-08-20 05:41 PM Re: Could use some help / advice please
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, this is docuemnted in both the KiXtart Manual and the FAQ Fourm. If only one DC/server/workstation is running this service then Kixtart must be instructed specifically to use that particular computers. It si therefore advisable to install the KXRPC service on all DCs as this will also ensure proper load-balancing.
_________________________
There are two types of vessels, submarines and targets.

Top
#44304 - 2003-08-20 06:12 PM Re: Could use some help / advice please
nirvanagod Offline
Fresh Scripter

Registered: 2003-08-20
Posts: 5
Loc: USA
WOW great!, well it's working a lot better now, thanks so much. now there is one small glitch with it and that is that it's not giving me all the necessary drives that need to be mapped. on my win2k client i get 3 out of the 4 that should come up, and on my 9x client i only get 2 out of 4. any more ideas? if you guys want i'll post the revision just let me know
Top
#44305 - 2003-08-20 06:15 PM Re: Could use some help / advice please
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Put DEBUG ON into the first line of your script and step through it. Use
code:
? 'Error '+@ERROR+' - '+@SERROR

to check for errors and I highly recommend to use any of the MapDrive() UDFs for drive mappings. See the UDF Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#44306 - 2003-08-20 06:26 PM Re: Could use some help / advice please
nirvanagod Offline
Fresh Scripter

Registered: 2003-08-20
Posts: 5
Loc: USA
well thanx for the advice, but i got it figured out. it was the way that win2k was listing the group name as compared to how i originally typed it. ex: administration ='ed admin. strange but true, anyways everything seems to be working great now, with no flaws (knock on wood). I definately appreciate everyones help, i should have came here sooner and asked instead of wasting two weeks being fustrated out of my mind!!!!. Again thank you guys SOOOO much!
Top
#44307 - 2003-08-20 06:29 PM Re: Could use some help / advice please
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Just make sure to read the FAQ Forum!
_________________________
There are two types of vessels, submarines and targets.

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.173 seconds in which 0.135 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