Link to home
Start Free TrialLog in
Avatar of carrizosa_md
carrizosa_md

asked on

Kixtart having problem mapping a drive

I am using kixtart for various logon functions within a logon script and am unable to map a specific drive.

Symptoms:

Other drives will map except for one specific one.

I figured it might be a permissions issue, but I can browse as the user to the NETLOGON share and run the KIX32.exe.
The strange part is that when I run the executable from the share, it maps all the drives that I need.

I have changed the drive letter, group authentication and even mapped to a different test share on another server with the same letter, however I cannot map anything to the server in question.

I am now thinking about resetting secure channels on the member server in question, but wanted to wait for an idea before I drop the entire serve with a restart. This is a critical server that is used for daily curriculum at a public school.

Here is the script I am working with. The drive mapping in question is the P drive (Plato) on the DV-APPS server.

;  KIXTART.KIX
;
;  Logon Script for SUSD
;
;
;  Author:            David Sanders
;  Creation Date:      11-12-99
;
;  Script Streamlined:  Michael Ingrando/Mark Carrizosa
;  Date:             03-08-05
;
;------- OVERWRITE THIS SECTION TO KEEP THE LAST KNOWN EDITOR CURRENT -------
;
;  Last Modified by:
;  Date:
;
;DEBUG ON ;(Uncomment for debugging feature)
;
;------------------------ CANCEL SCRIPT IF SERVER ---------------------------
;
IF @wksta = "DV-ADM" OR            
   @wksta = "DV-DC1" OR            
   @wksta = "DV-AP1" OR            
   @wksta = "DV-STD" OR            
   @wksta = "DV-TCH" OR            
   @wksta = "DV-PRT"             
;  
   COOKIE1                  EXIT                        ENDIF      
;
;
;--------------------- PROGRESS DIALOG BOX PRESENTED ------------------------
;
CLS
SMALL
$TopLeftRow = 0
$TopLeftCol = 0
$BtmRtRow = 30     ;Height
$BtmRtCol = 80     ;Width
;
Color c/c
BOX($TopLeftRow, $TopLeftCol, $BtmRtRow, $BtmRtCol, SINGLE)
;
Color r/c+
AT(10, 10) "Please Standby While Network Resources are Established..."
Sleep 2
;
Color n/c
AT(13,18)  "Reviewing User Account Information.........."
Sleep 3
;
;
;
;------------------------------ SET VARIBLES --------------------------------
;   ****** Notice: Always put quotes around UNC's with a $ in it. ******
;
$ADM            ="\\DV-ADM"
$APP            ="\\DV-APPS"
$DC1            ="\\DV-DC1"
$STD            ="\\DV-STD"
$TCH            ="\\DV-TCH"
$PRT            ="\\DV-PRT"
$ITS            ="\\ADMIN-IT"
$HSQ            ="\\HMSQ"
$AMN            ="\\ADMIN"
;
$Common            = $STD + "\Common"
$Apps            = $STD + "\Apps"
$Library      = $ADM + "\LRC-CIRC$"
$Nurses            = $HSQ + "\Nurses$"
$Itshare      = $ITS + "\It-Share$"
$FOOD            = $AMN + "\Food Services$"
$Plato            = $APP + "\PLATO$"
;
;----------- SET GROUPSHARE VARIABLE (Based on group membership.) -----------
; DEFAULT $GroupShare to Common to prevent script from crashing
; on assumed variable!
; (THE EFFECT OF MULTIPLE MEMBERSHIP IS THE LAST MAPPING TAKES PRECEDENCE.)
;
$GroupShare = $STD + "\Common"
;
;
IF INGROUP ("Domain Users")      $GroupShare= $STD + "\Common"            ENDIF
;
;
IF INGROUP ("SchoolAdmins")      $GroupShare= $ADM + "\SchoolAdmin$"      ENDIF
;
;
IF INGROUP ("Teachers")            $GroupShare= $TCH + "\Teachers$"      ENDIF
;
;
IF INGROUP ("Nurses")            $GroupShare= $ADM + "\SchoolAdmin$"      ENDIF
;
;
IF INGROUP ("Food Services")      $GroupShare= $AMN + "\Food Services$"      ENDIF
;
;
;------------------ CONTINUE PREVIOUS PROGRESS DIALOG BOX -------------------
;
AT(16,22)  "Thank You, Login will continue..."
Sleep 3
CLS
;
;---------------------------- MAP GLOBAL DRIVES -----------------------------
;
Color n/c
AT (1,14) "Mapping District Standard Global Network Drives......"
SLEEP 1
;
;----------- MAP STANDARD DRIVES FOR ALL SITES (Global Mappings) ------------
;
USE F:       $Apps
;
USE G:       $GroupShare
;
USE I:       $Common
;
USE L:  $Library
;
IF INGROUP ("Nurses")            USE N: $Nurses                        ENDIF
;
IF INGROUP ("Domain Admins")      USE O: $Itshare                        ENDIF
;
IF INGROUP ("Food Services")      USE W: $Food                        ENDIF
;
;
;
;------- THE NEXT MAPPINGS PORTION OF THE SCRIPT IS UNIQUE TO THE SITE ------
;
;----------------------------- MAP LOCAL DRIVES -----------------------------
;
Color n/c
AT (3,14) "Mapping Site-Based Local Network Drives.............."
SLEEP 1
;
;
;------------------ MAP SITE OR APPLICATION SPECIFIC DRIVES -----------------
;
IF INGROUP ("Teachers")            USE P: $Plato                        ENDIF
IF INGROUP ("Students")            USE P: $Plato                        ENDIF
;
;
;-------------------------- MAP CDROM TOWER DRIVES --------------------------
;------------------------ (NOT IN USE AT THIS TIME) -------------------------
;
;USE S: $servername + "\CDROM07"
;USE T: $servername + "\CDROM06"
;USE U: $servername + "\CDROM05"
;USE V: $servername + "\CDROM04"
;USE W: $servername + "\CDROM03"
;USE X: $servername + "\CDROM02"
;USE Y: $servername + "\CDROM01"
;
;
;------------------ END UNIQUE MAPPINGS PORTION OF SCRIPT -------------------
;
;
;
;------------------------------- CHECK UPDATES ------------------------------
;
Color n/c
AT (5,14) "Checking for Updates and Configuration Changes......."
SLEEP 2
;
;----------------------- CREATE UPDATES IN THIS SECTION ---------------------
;
;----------------------- REGISTRY MODIFICATION SECTION ----------------------
;
;---------------------------- UPDATES COMPLETED -----------------------------
;
Color n/c
AT (7,14) "Updates and Configuration Changes Completed.........."
SLEEP 2
;
;-------------------------- DISPLAY USER SETTINGS ---------------------------
;
SMALL
Color g+/n
BOX (10,14,18,66,FULL)
Color w+/n
AT ( 11,20)"Userid       : "   ; display some text strings
AT (12,20) "Full name    : "
AT (13,20) "Privilege    : "
AT (14,20) "Workstation  : "
AT (15,20) "Domain       : "
AT (16,20) "Logon Server : "
AT (17,20) "Script Used  : "
Color y+/n
AT ( 11,37) @userid             ; ...and some macro's
AT (12,37) @fullname
AT (13,37) @priv
AT (14,37) @wksta
AT (15,37) @domain
AT (16,37) @lserver
AT (17,37) @scriptname
sleep 5
;
;
;--------------------- CONFIRM GLOBALLY MAPPED  DRIVES ----------------------
;
Color n/c
AT (21,14) "Verifying Globally Mapped Network Drive Connections..."
SLEEP 3
;
;
;---------------------- MAPPED DRIVE ERROR CHECKING -------------------------
;
;USE L: /DELETE ;(FOR DEBUGGING)
;
$DL="F:\"
IF  EXIST ("F:\") GOSUB "CHECKG"       ELSE GOTO "ERROR"       ENDIF
;
      :CHECKG
$DL="G:\"
IF  EXIST ("G:\") GOSUB "CHECKH"       ELSE GOTO "ERROR"      ENDIF
;
      :CHECKH
$DL="H:\"
IF  EXIST ("H:\") GOSUB "CHECKI"       ELSE GOTO "ERROR"      ENDIF
;
      :CHECKI
$DL="I:\"
IF  EXIST ("I:\") GOSUB "CHECKL"       ELSE GOTO "ERROR"      ENDIF
;
      :CHECKL
$DL="L:\"
IF  EXIST ("L:\") GOSUB "LOGON"       ELSE GOTO "ERROR"      ENDIF
;
;
;---------------------- MESSAGE BOX PROMPTED TO USER ------------------------
;
      :ERROR
BEEP      
MESSAGEBOX
("Your login to the SUSD Network has reported an error."
 + CHR(10) + "Some network resources may not be available."
 + CHR(10) + "Your $DL network drive did not connect correctly."
 + CHR(10) + "Please report this to your Site Technician."
 + CHR(10) + "Your account has been validated by @LSERVER."
 + CHR(10) + "The time is @DAY, @TIME, @DATE."
 + CHR(10) + "                 Have a nice day :) !!!"
 + CHR(10) + "", "Sunnyside USD #12 -   ERROR   - $DL Drive Missing", 48, 45)
GOSUB "END"
;
;
;
;
      :LOGON
MESSAGEBOX
("Welcome to the Sunnyside USD Computer Network."
+ CHR(10) + "Your account has been validated by @LSERVER."
+ CHR(10) + "The time is @DAY, @TIME, @DATE."
+ CHR(10) + "                  Have a nice day :) !!!",
"Sunnyside USD #12  -   LOGIN SUCCESSFUL  !!!", 64, 45)
;
      :END
;----------- TELLS THE SCRIPT INTERPRETER THAT THE SCRIPT IS DONE -----------
COOKIE1
EXIT
Avatar of carrizosa_md
carrizosa_md

ASKER

I know this is a monster to read, but a solution is almost priceless to me.
Thanks
Well after a few days with no response I was forced to dive in deeper than I wanted to, but I have a solution.
My Member server's clock was not sync'd with the domain controller. It sems that someone had pointed it to sync externally with a non existent server within the W32time registry key.
This was causing a kerberos authentication failure adn subsequntly unable to map drives.
Once the clock was sync'd with the DC everything was fine.

mc

Moderator...please close
ASKER CERTIFIED SOLUTION
Avatar of GhostMod
GhostMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial