Page 1 of 1 1
Topic Options
#45643 - 2003-09-19 04:50 PM Script runs on XP, but drives don't get mapped
perogy Offline
Fresh Scripter

Registered: 2002-11-20
Posts: 9
Loc: Indianapolis
We have kix login scripts running on our XP Professional machines. The scripts run, we can see the text, but when it gets down to the part that displays "Mapping network drives", it SHOULD show a period '.' for each network drive that is mapped after that text. On our XP machines, it does not map the drives; on the W2K machines that we still have, it maps the drives fine. Any thoughts? Thanks...
Top
#45644 - 2003-09-19 04:54 PM Re: Script runs on XP, but drives don't get mapped
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
What if you run the script manually afterward ? Can you map the drives manually afterward using net use ? Put some error tracers in your script and display @ERROR and @SERROR.
Top
#45645 - 2003-09-19 04:54 PM Re: Script runs on XP, but drives don't get mapped
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Let me dust off my crystal ball and get back to you....
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#45646 - 2003-09-19 05:00 PM Re: Script runs on XP, but drives don't get mapped
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Les is right.

Please post your script.

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

Top
#45647 - 2003-09-19 05:26 PM Re: Script runs on XP, but drives don't get mapped
perogy Offline
Fresh Scripter

Registered: 2002-11-20
Posts: 9
Loc: Indianapolis
Got it, here you go, sorry if the formatting is a little off...This is just the small portion that is responsible for mappings. Our version of Kixtart is 2.something....am checking now, will upgrading to the newest version have any effect? Thanks again

; Script initialization and diagnostics

break off ;Logs out user if script is
;exited unexpectedly.
color w+/b ;Sets screen color to bright
;white on blue.
settime "\\LETO" ;Synchronizes workstation time
;with domain controller.
cls ;Clears the screen.

?"Welcome to companyname, @fullname" ;Displays welcome message.
?"It is @time on @day, @month @mdayno, @year" ;Displays current workstation
;date.
?" "
?"Computer name: @wksta" ;Displays workstation name.
?"Ethernet address: @address" ;Displays workstation ethernet
;MAC address.
?"IP address: @ipaddress0" ;Displays workstation IP address.
?"Hostname: @hostname" ;Displays workstation's fully
;qualified domain name.
?"Logon Server: @lserver" ;Displays logon domain controller.
?"Kixtart version: @kix" ;Displays KiXtart version.
:Main
SELECT
CASE ((@INWIN = 1) AND (@DOS = 5.1)) ; What OS is the user running?
$OS = "WinXP"
CASE ((@INWIN = 1) AND (@DOS = 5.0))
$OS = "Win2K"
CASE ((@INWIN = 1) AND (@DOS = 4.0))
$OS = "WinNT4"
CASE 1
$OS = "UnKnown"
ENDSELECT
? "OS Version: " + $OS ;Displays User's OS
?" " ;Displays blank line.

?" " ;Displays blank line.

;-----------------------------------------------------------------------------------

; Connect network drives and department folders.

?"Connecting network drives" ;Display drive connection message.

if ingroup("Audit Group")
use f: "\\$fileserver\apps" ;Connect Apps folder.
"."

use g: "\\$fileserver\group" ;Connect Group folder.
"."

use h: "\\$fileserver\@userid" ;Connect user's personal folder.
"."

use l: "\\$fileserver\lacert95" ;Connect Lacerte folder.
"."

use n: "\\Eos\clients" ;Connect clients folder.
"."

use p: "\\$fileserver\tempclients" ;Connect to Temporary FAM2000 files
"."

use s: "\\BRIZO\best" ;Connect MAS90 folder.
"."

endif

if ingroup("Tax Group")
use o: "\\EOS\tmfa1999" ;Connect to Tax Management Federal Tax Cases
"."

use q: "\\EOS\tmforms01" ;Connect to Tax Management Forms 01
"."

use r: "\\EOS\tmcb2000" ;Connect to Tax Management Portfolio+ -Practice Tools
"."

use t: "\\EOS\tmforms99" ;Connect to Tax Management Forms 99
"."

use u: "\\EOS\tmlr2000" ;Connect to Tax Management IRS Rulings
"."

use v: "\\EOS\tmfc2000" ;Connect to Tax Management Federal Cases
"."

use w: "\\EOS\tmforms00" ;Connect to Tax Management Forms 00
"."

use x: "\\EOS\kleinrock" ;Connect to Klienrock's Tax Expert
"."

use y: "\\EOS\tmca2000" ;Connect to Tax Management Portfolio+ - P & R
"."

endif

if ingroup("Nexlink")
use h: "\\$fileserver\@userid" ;Connect user's personal folder.
"."

use t: "\\Poseidon\it" ;Connect to IT folder
"."

use u: "\\Apollo\nexlink" ;Connect to Nexlink folder
"."

use l: "\\$fileserver\lacert95" ;Connect Lacerte folder.
"."

use w: "\\BRIZO\PPC" ;Connect to PPC folder.
"."

use s: "\\BRIZO\best" ;Connect MAS90 folder.
"."

endif

Top
#45648 - 2003-09-19 06:06 PM Re: Script runs on XP, but drives don't get mapped
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Don't use vars within strings!

Put DEBuG ON into the first line of yoru code and step though it, it'll show you exactly what's going on in your code. And sprinkle ? ''+@ERROR+' - '+@SERROR statements throughout your code.
_________________________
There are two types of vessels, submarines and targets.

Top
#45649 - 2003-09-19 06:18 PM Re: Script runs on XP, but drives don't get mapped
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, my guess is that vasr in strings is not the issue as the dots would still display. Need to troubleshoot the InGroup functions. Try including the domain name in the parm.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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.141 seconds in which 0.112 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