• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3154
  • Last Modified:

Kix script mappings not working 100%

Hi, we are using .kix scripts and having some trouble could any one help with some problems im having.

Mappings for departmental drives seems to fail at least 2-3 times a day (Ie someone should get G,H,U and only gets H and U) Any ideas why they keep failing.

Everyone has a mapping to there personal folder (U) via the Kix scripts and in there AD account under Profile Home folder, a few times there have been differences between then and poeple cant login, This was set up before i joined. Does anyone know why we have both???

Sometimes when we add another mapping it dosnt work, and we have to delete the lines of code and reput the code in. and then it will work???

Apparently before we used .kix we used .bat files and have the same problem but worse. Is there really no solid way that actually works to give poeple mapped drives.

Thanks for any input,

s
0
stebennettsjb
Asked:
stebennettsjb
  • 5
  • 2
1 Solution
 
Chris_PerisCommented:
Hi,

I use bat files to map the drive for users and it works perfectly. Best thing is to do is map the personal drive through the user account - profile -Home and make all the other Folders map through a bat. Also if u make the bat file using the user user name u can give a option in Start - All Programs where user can just click on the bat file to map the drives. let me know if u need to know how. Also this is the bet file format i use



NET USE X: /DELETE
NET USE Y: /DELETE

NET USE X: "\\192.168.18.17\XYZ$"
NET USE Y: "\\192.168.18.17\ABC$"
0
 
IsorgCommented:
try putting some debug code into your kix logon script.

something like this at the top.

(see code attachment)

then login with your test user, and the kixscript will enable it's debug mode.  This will let you walk through the code one line at a time

also, after your Drive mappings

use g:  \\server\share
  (see code attachment)


Aside from that, are these wireless clients?  maby they are not logging in until after the wireless is online.

;Place at the top of the kix script
if @userid = "testuser"
   debug on
endif




; Place after your Drive mapping commands
; use g: ...
if @error
   ? 'There was an error mapping the G: ' +  @serror
endif

Open in new window

0
 
stebennettsjbAuthor Commented:
Hi Isorg,

I will give it go tomorrow thank you. No wireless connections, just seems to not run everything. Today i had 3 people from 1 site ring up saying that a drive mapping wasnt working. No one has touched that line of script for 4-5 months. But we did another mapped drive to it. Just seems very random which adds to pain of it. If once there logged in i go to the kix script and run it they will get the drive but it sometimes takes 2-3 goes. Same with them logging off and back on again.

Another one that cropped up this week. was

USE G: "\\servername\location" /PERSISTANT
SHELL G:/mybatch.bat

where it maps a drive to G then runs a script in that location. Then

Then the batch file has 2 more mapped drives and login details.

The users are getting the mapped drive. but not the login credential ???

If they run the script again once logged in the problem is sorted. If they try and connect to the drive they get prompted for username password, with username filled in and just need to enter the password.

This was also working for months and months and now suddenly stopped.

I will let you the results of the debug when i get in :)

Thanks

s
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
IsorgCommented:
you add any new domain controlers?
0
 
stebennettsjbAuthor Commented:
no, we've had same dc's for year or so maybe.

0
 
stebennettsjbAuthor Commented:
Sorry for the delay in getting back to you.

So i used the below script


;Place at the top of the kix script
if @userid = "testuser"
   debug on
endif


; Place after your Drive mapping commands
; use g: ...
if @error
   ? 'There was an error mapping the G: ' +  @serror
endif


pops up black box and i have to click though it going though each IF GROUP x

but it always closes after 4 groups I moved the script that wasnt running up to the top and now its running.

Just wondering why its closing after 4 when theres maybe 10+ the 4th and 5th IF statements are formatted the same as the first IF statements

Thanks

s

0
 
stebennettsjbAuthor Commented:
double checked.

the only thing i could different is that the IF that it always closed on didnt have /PERSISTENT on the delete mapping and remapping.

example with:

IF INGROUP("MySite\Access to Photographs")
USE P: /DELETE /PERSISTENT
USE P: "\\MyServer\Photographs" /PERSISTENT
ENDIF

Without:

IF INGROUP("MySite\Access to Photographs")
USE P: /DELETE
USE P: "\\MyServer\Photographs"
ENDIF

Should that matter?
0
 
stebennettsjbAuthor Commented:
Closed and excepted Isorg for solution.

I ran the scripts again and found that where they kept stopping there was a syntax error. This has fixed all the known problems i have.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now