Page 1 of 1 1
Topic Options
#194096 - 2009-06-03 02:02 PM Simple network mapping script stopped working since monday
bifolco Offline
Fresh Scripter

Registered: 2009-06-03
Posts: 5
Loc: Italy
Hi,
I have a problem that is driving me crazy.
I made a very simple script in order to map some shares on a file server based on the membership to a group or to certain usernames and this had worked since last week but today for no reason is not working.
The script seems to start but simply ignore the mapping parts, i paste those parts below:
 Code:
If InGroup("BACKOFFICE")
Use O: /DELETE
Use O: "\\Server\Department$\BackOffice" 
EndIf

If InGroup("FINANCE")
Use F: /DELETE
Use F: "\\\\Server\Department$\\Finance" 
EndIf

If @USERID = "ThatGuy"
Use G: /DELETE
Use G: "\\SSRVEIBC01\Department$\ThatFolder"
EndIf			


I'm using KixTart version 4.60 and I'm trying to map shares on a Windows 2003 R2, I also noticed that since a yesterday I have this error in the event viewer of the windows file server:
Error 1 Source: KIXTART

The description for Event ID ( 1 ) in Source ( KIXTART ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:
ERROR : failed to find/open script [script.kix]!
Error : Incorrect function. (0x1/1).

I don't understand whta's wrong and why it has worked for weeks and now suddenly had stopped.
Thanks in advance for your help.

Top
#194098 - 2009-06-03 02:38 PM Re: Simple network mapping script stopped working since monday [Re: bifolco]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Did you upgrade the kix executebales to 4.60 recently?
Can you downgrade to 4.53? If so does it work then?

4.60 has some issues.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#194100 - 2009-06-03 03:17 PM Re: Simple network mapping script stopped working since monday [Re: Mart]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Welcome to KORG!

Kix 4.6 handles arguments and exit codes differently than prior versions. Please post the command line you run (from the user's profile login field). If you use a batch file, post the batch file.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#194102 - 2009-06-03 05:12 PM Re: Simple network mapping script stopped working since monday [Re: Glenn Barnas]
bifolco Offline
Fresh Scripter

Registered: 2009-06-03
Posts: 5
Loc: Italy
Hi,
I did not upgrade recently but I've been using version 4.60 for about 1 year.
Yes, I use a batch file to launch the script and it's just: kix32 netlogonsubfolder\script.kix.

Bye

Top
#194103 - 2009-06-03 06:43 PM Re: Simple network mapping script stopped working since monday [Re: bifolco]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Search your kix script for "exit 2" and (for now) change it to "Exit 0", add a "@SERROR ?" before the exit command.

If you find several "Exit 2" commands, change the "@SERROR ?" message to say something unique, like "Line ### - @SERROR ?"

Something has changed, resulting in Kix exiting with an error code 2. A problem within Kix 4.6 presents the error you are seeing.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#194104 - 2009-06-03 06:44 PM Re: Simple network mapping script stopped working since monday [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Also - the change is not within your script, but something your script is looking for - an external file possibly that has been deleted or renamed recently.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#194124 - 2009-06-04 04:05 PM Re: Simple network mapping script stopped working since monday [Re: Glenn Barnas]
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
It seems the following needs to be changed from:

Use F: "\\\\Server\Department$\\Finance"

To:
Use F: "\\Server\Department$\Finance"

You may also need to use NOVARS in your header..

Also, it is considered poor practice to map a drive through an Admin Share: "$" (unless all of your users are Domain Admins).

HTH,

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

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

Generated in 0.056 seconds in which 0.025 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