Page 7 of 9 « First<56789>
Topic Options
#73577 - 2003-03-05 02:18 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
OK, you ask a question but did not supply the info about which drives did not map and what code (IF statement) governs when/if they get mapped.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73578 - 2003-03-05 02:41 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
Ok sorry,
code:
;*******************************************
; Network Drive Mappings by Group Membership
;*******************************************
If InGroup('Domain Users')
? 'I: (\\Sussex-FS-1\General)'
Use I: '\\Sussex-FS-1\General'
? 'P: (\\Sussex1\Users\@USERID)'
Use P: '\\Sussex1\USERS\@USERID'
? 'S: (\\Sussex1\Shared)'
Use S: '\\Sussex1\Shared'
EndIf

If InGroup('Information Systems')
? 'W: (\\Sussex-FS-2\Information Systems)'
Use W: '\\Sussex-FS-2\Information Systems'
EndIf

If InGroup('Mapping And Addressing')
? 'G: (\\Sussex-FS\Global)'
Use G: '\\Sussex1\Global'
? 'R: (\\Sussex-FS\ReAddressing)'
Use R: '\\Sussex1\ReAddressing'
? 'V: (\\Sussex-FS\View)'
Use V: '\\Sussex1\View'
? 'Z: (\\Sussex-fs-1\Aerial_Photos)'
Use Z: '\\Sussex-fs-1\Aerial_Photos'
EndIf

This code works fine with the XP, 2000, and NT clients. Also the printer mappings aren't working at all on the 98 client. Here is that code as well.

code:
;************************************
;Printer Mappings by Group Membership
;************************************
If InGroup('Information Systems')
$RC=AddPrinterConnection("\\Sussex-DC2\IS HP LaserJet 4100tn")
If $RC=0
? "Adding printer, IS HP LaserJet 4100tn"
$RC=AddPrinterConnection("\\Sussex-DC2\IS HP Color LaserJet 4550")
If $RC=0
? "Adding printer, IS HP Color LaserJet 4500"
Else
? "$$RC = "+$RC
? "@@Error = "+@Error
? "@@SError = "+@SError
EndIf
EndIf

Thanks!!

Top
#73579 - 2003-03-05 03:27 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
As for the printers not mapping on Win9x computers, see the text taken from the manual below:
quote:
Remarks: This function is available only on Windows NT family, and can be used only to connect to printers on a server running the Windows NT/2000/XP operating system.
When Windows NT connects to the printer, it may copy printer driver files to the local computer. If the user does not have permission to copy files to the appropriate location, ADDPRINTERCONNECTION fails, and @ERROR returns ERROR_ACCESS_DENIED.


The drive not mapping seems to indicate that INGROUP may not be behaving as expected. Take that piece of code and make a test script to test just the INGROUP functionality use if ... else... endif format so that you can see if the ingroup is actually true or false.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73580 - 2003-03-05 03:36 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
Ok I guess the printer issue with 9x is not a big deal really. The drive mappings are though.
I created a test script for the drive mappings only and added the error checking by each line to make sure what is going on. Here are the results:

'\\Sussex1\NETLOGON'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.

I: (\\Sussex-FS-1\General)
Error = 0 - The operation completed successfully.
P: (\\Sussex1\Users\mmontgomery)
Error = 0 - The operation completed successfully.
S: (\\Sussex1\Shared)
Error = 0 - The operation completed successfully.
W: (\\Sussex-FS-2\Information Systems)
Error = 0 - The operation completed successfully.
G: (\\Sussex-FS\Global)
Error = 0 - The operation completed successfully.
R: (\\Sussex-FS\ReAddressing)
Error = 0 - The operation completed successfully.
V: (\\Sussex1\View)
Error = 0 - The operation completed successfully.
Z: (\\Sussex-fs-1\Aerial_Photos)
Error = 0 - The operation completed successfully.
C:\WINDOWS>

Top
#73581 - 2003-03-05 03:37 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
This was run on an XP box though not the 98 one.
Do you need for me to run it on the 98 box? I was just checking to verify the network paths were valid and they are. By the ingoup usage.

Top
#73582 - 2003-03-05 03:42 PM Re: Problem with kixtart and NT4.0
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You should always run the scripts under the compuer/OS that is producing the errors.

Also, with all the asssitance we've been providing so far I believe you should be able to do some basic debugging without asking us for every step.

Put a DEBUG ON into the first line of your script code, and step through the code while running it under one of the affected computers/users.

Then put more error checks into the code and test more.

We are willing to help you, but you will have to do some of the work yourself.

[ 05. March 2003, 15:43: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#73583 - 2003-03-05 03:43 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Not to be too blunt, but if the faillure is on the Win9x box do you think you need to be testing on the Win9x box so that you know what exactly is working and not working so that you can eventually fix the problem?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73584 - 2003-03-05 03:54 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
Ok from what I found out by running it on the 98 box. It starts to map drives and when it gets to this line:

If InGroup('Information Systems')
? 'W: (\\Sussex-FS-2\Information Systems)'
Use W: '\\Sussex-FS-2\Information Systems'
? 'Error = '+@ERROR+' - '+@SERROR
EndIf

It says path cannot be found, which is actually true. That is a share that only IS people can get to. That is why it worked when I did it on my XP box because my login name has that permission. So it looks like the script fails after that line. Is there a way to make it keep running the script even after an error occurs?

Top
#73585 - 2003-03-05 04:11 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
That should not cause the script to terminate. Logon as you on the Win98 box. Does the mapping complete?

Are there limits to the length of a share that Win9x can address?

[ 05. March 2003, 16:12: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73586 - 2003-03-05 04:17 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I just logged in as me on the 98 box and same thing happened. It stops at that one share failure. I commented out that 1 to see if it would continue on to the Mapping & Addressing drives and it doesn't. I hope there is no limited to only 3 mapped drives on 98. That would really suck. Someone has to be doing this successfully.
Top
#73587 - 2003-03-05 04:24 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I am not saying you are limit to 3 mapping. I am questioning the length on the share name. Are the other shares that you map have long share names as well? Sorry, I should know any limitation of Win9x, but haven't platyed with Win9x in some years.

Take you map statement and use 'Net use' to map the drive in a DOS window. Is that successful? Try mapping in explorer is that successful. If so, then there appears to be a problem in the script. If not then you have some network/client issue to resolve.

What is the code following the failed mapping?

[ 05. March 2003, 16:25: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73588 - 2003-03-05 04:26 PM Re: Problem with kixtart and NT4.0
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
However, there are limits to the length of share names. This is well documented, e.g. in the FAQ Forum. I also think I already asked you a couple of times to RTDFF (Read The D*** FAQ Forum). The post is appropriately named Limits in NetBIOS, computer/printer names, share names/comments .
_________________________
There are two types of vessels, submarines and targets.

Top
#73589 - 2003-03-05 04:40 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
Ok every drive mapping mapped manually from the command prompt on the 98 box using net use commands.

Except for the one
? 'R: (\\Sussex-FS\ReAddressing)'
Use R: '\\Sussex-FS\ReAddressing'
Which prompted me for a password, I am not sure why. I can get to it on my XP box just fine but not on the 98 box logged in as me. So I don't see the lengths being an issue here. Most of the shared are much shorter that the ones I am using below.

code:
;*******************************************
; Network Drive Mappings by Group Membership
;*******************************************
If InGroup('Domain Users')
? 'I: (\\Sussex-FS-1\General)'
Use I: '\\Sussex-FS-1\General'
? 'Error = '+@ERROR+' - '+@SERROR
? 'P: (\\Sussex1\Users\@USERID)'
Use P: '\\Sussex1\USERS\@USERID'
? 'Error = '+@ERROR+' - '+@SERROR
? 'S: (\\Sussex1\Shared)'
Use S: '\\Sussex1\Shared'
? 'Error = '+@ERROR+' - '+@SERROR
EndIf

If InGroup('Information Systems')
? 'W: (\\Sussex-FS-2\Information Systems)'
Use W: '\\Sussex-FS-2\Information Systems'
? 'Error = '+@ERROR+' - '+@SERROR
EndIf

If InGroup('Mapping And Addressing')
? 'G: (\\Sussex1\Global)'
Use G: '\\Sussex1\Global'
? 'Error = '+@ERROR+' - '+@SERROR
[B]? 'R: (\\Sussex-FS\ReAddressing)'[/B] (Password Prompting)
? 'Error = '+@ERROR+' - '+@SERROR
? 'V: (\\Sussex1\View)'
Use V: '\\Sussex1\View'
? 'Error = '+@ERROR+' - '+@SERROR
? 'Z: (\\Sussex-fs-1\Aerial_Photos)'
Use Z: '\\Sussex-fs-1\Aerial_Photos'
? 'Error = '+@ERROR+' - '+@SERROR
EndIf


Top
#73590 - 2003-03-05 05:34 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Did you try creating a test script that just execute the "If InGroup('Mapping And Addressing')" test to see if the client is find the group membership?

Group names greater than 20 characters are not supported on Win9x. Try looking there.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73591 - 2003-03-05 05:35 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I tried commenting all of the other drive mappings out except for that section and it didn't map anything. But if it was a limitation in 98 why would it work manually, I don't understand.
Top
#73592 - 2003-03-05 05:38 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
My last post was not a comment about mapping drives. It was about the ingroup test on a group name greater than 20 characters.

Please isolate your testing to one thing at a time so that you can determine exactly what does and what does not work.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73593 - 2003-03-05 05:39 PM Re: Problem with kixtart and NT4.0
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
And read the post I referenced to double-check whether you hit any of the limitations mentioned in it.
_________________________
There are two types of vessels, submarines and targets.

Top
#73594 - 2003-03-05 05:40 PM Re: Problem with kixtart and NT4.0
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
just run this

If InGroup('Mapping & Addressing')

by itself?

Top
#73595 - 2003-03-05 05:43 PM Re: Problem with kixtart and NT4.0
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You have to create a valid piece of script. Save this as a test.kix and execute it on the your XP box to see the success and then execute it on the Win98 box to see if you get a different result.
code:
? "The value of InGroup(Mapping And Addressing) is : " +  InGroup('Mapping And Addressing')  

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#73596 - 2003-03-05 05:44 PM Re: Problem with kixtart and NT4.0
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Try this:
code:
$group=InGroup('Mapping & Addressing')
? ''+@ERROR+' - '+@SERROR
? 'InGroup() = '+$group

by itself.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 7 of 9 « First<56789>


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

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.073 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

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