#73577 - 2003-03-05 02:18 PM
Re: Problem with kixtart and NT4.0
|
Howard Bullock
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.
|
Top
|
|
|
|
#73578 - 2003-03-05 02:41 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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.
|
Top
|
|
|
|
#73580 - 2003-03-05 03:36 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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
|
|
|
|
#73583 - 2003-03-05 03:43 PM
Re: Problem with kixtart and NT4.0
|
Howard Bullock
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?
|
Top
|
|
|
|
#73584 - 2003-03-05 03:54 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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 ]
|
Top
|
|
|
|
#73586 - 2003-03-05 04:17 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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 ]
|
Top
|
|
|
|
#73589 - 2003-03-05 04:40 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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.
|
Top
|
|
|
|
#73591 - 2003-03-05 05:35 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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.
|
Top
|
|
|
|
#73594 - 2003-03-05 05:40 PM
Re: Problem with kixtart and NT4.0
|
DJ Ballistic
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
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')
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 898 anonymous users online.
|
|
|