We help IT Professionals succeed at work.

Kix script mappings not working 100%

3,926 Views
Last Modified: 2012-08-13
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
Comment
Watch Question

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$"
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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

Commented:
you add any new domain controlers?

Author

Commented:
no, we've had same dc's for year or so maybe.

Author

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

Author

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?

Author

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.