Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Kix script mappings not working 100%

Posted on 2010-09-08
8
Medium Priority
?
2,996 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
0
Comment
Question by:stebennettsjb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 

Expert Comment

by:Chris_Peris
ID: 33624987
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
 
LVL 3

Accepted Solution

by:
Isorg earned 2000 total points
ID: 33628690
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
 

Author Comment

by:stebennettsjb
ID: 33629791
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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 3

Expert Comment

by:Isorg
ID: 33629931
you add any new domain controlers?
0
 

Author Comment

by:stebennettsjb
ID: 33629992
no, we've had same dc's for year or so maybe.

0
 

Author Comment

by:stebennettsjb
ID: 33723177
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
 

Author Comment

by:stebennettsjb
ID: 33723190
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
 

Author Comment

by:stebennettsjb
ID: 33770518
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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question