Page 1 of 1 1
Topic Options
#28279 - 2002-09-03 02:26 PM My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
I use kixstart and in my script, drives are mapped based on ingroup. This works for my 95, NT, and 2000 users; however, none of the drives map for XP users. Any suggestions?
Top
#28280 - 2002-09-03 02:28 PM Re: My drive mappings don't work on XP
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Can you post the drive mapping section of your code for us to review?
Top
#28281 - 2002-09-03 02:29 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
We need to see what you are doing in order to help you. Please post your code and provide a more detailed description of the exact failure. Does the script run at all on XP? Do all drive mappings fail or just some? Has the script ever worked on XP?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28282 - 2002-09-03 02:40 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
This is the mapping portion. The XP boxes appear to run the script, but none of the drives map.

use i: /d
use k: /d
use n: /d
use p: /d
use q: /d
use s: /d
use t: /d
use o: /d
use u: /d

;------------------Set System Time--------------------------
Shell "net time \\tsysdc1 /set /y"
;------------------Start Drive Mappings --------------------

;use i: "\\edcfp1\apps$"
use p: "\\rfcluster\public"
use q: "\\edcfp1\common$"
use u: "\\edcfp1\@userid" + "$"

if ingroup("NetG")
?"Mapping NetG Drive"
use g: "\\edcfp1\netg"
endif

if ingroup("Tech Support")
?"Mapping Tech Support Drive"
use m: "\\edcfp1\mvs$"
endif

if ingroup("Primavera")
?"Mapping Primavera Drive"
use o: "\\tsys-p3\Public"
endif

if ingroup("Network Control")
?"Mapping Network Control Drive"
use n: "\\ncfp1\common"
use s: "\\edcfp1\network$"
endif

if ingroup("Prognosis")
?"Mapping Prognosis Drive (X)"
use x: "\\edcfp1\prognosis$"
endif

if ingroup("Tech Support")
?"Mapping Tech Support Drive"
use t: "\\edcfp1\tech$"
endif

Top
#28283 - 2002-09-03 02:41 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
The script works that first time that the user logs on to the XP box. It doesn't work after that.
Top
#28284 - 2002-09-03 02:43 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
So the real problem is not groups or mapping drives, but is the fact the script is not executing.

How are you calling the script? Please post your batch file.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28285 - 2002-09-03 02:45 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
Batch file:
@echo off
path=z:\;%path%
kixtart edc.skr

Top
#28286 - 2002-09-03 02:51 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I suggest that you review: Kixtart Starter's Guide

In particular the Advanced Logon.bat section. Try implementing it copy Kix32.exe local to the computer and use %0\..\script.

Does that fix your problem?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28287 - 2002-09-03 02:52 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Wait a minute...

Are you running 16-bit Kixtart.exe version 2.33?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28288 - 2002-09-03 02:55 PM Re: My drive mappings don't work on XP
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Also take a look at the following Q article from MickeySoft:
Q318689

HTH
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#28289 - 2002-09-03 02:57 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
We are running the 16 bit version.
Top
#28290 - 2002-09-03 03:01 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I am not sure what issues may exist between XP and 16-bit KiXtart. Is there any reason you can not upgrade to at least version 4.02 of the 32-bit version?

[ 03. September 2002, 15:01: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28291 - 2002-09-03 03:03 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
One of my coworkers previously tried an upgrade to the 32 bit version and none of our 95 clients would run the script.
Top
#28292 - 2002-09-03 03:04 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please define
quote:
none of our 95 clients would run the script
{edit} All 5000 of my Win9x computers execute just fine under 4.02.

[ 03. September 2002, 15:05: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28293 - 2002-09-03 03:11 PM Re: My drive mappings don't work on XP
KimSolo Offline
Fresh Scripter

Registered: 2002-09-03
Posts: 7
I'm not sure what the specific error was with the 95 clients, and unfortunately the only person in our office who does is not in today.
Top
#28294 - 2002-09-03 03:16 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I would highly recommend that you you work toward upgrading. Until then...

Have you tried to execute the the logon script from a DOS window on XP?
code:
\\server\netlogon\kixtart.exe \\server\netlogon\edc.skr

Does this execute?

NT,W2K, and XP do not use z:\ when executing the logon script.

Do your XP computers display the black DOS window at all when the script should execute?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28295 - 2002-09-03 03:22 PM Re: My drive mappings don't work on XP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I believe your problem is that you are relying on the path=z:\ for your clients to find Kixtart.exe and the script. XP does not use Z:\ and therefore most likely can not find the file to execute.

Please review and implement a test batch file using the "advanced logon.bat" format from my previous post and let me know if your XP computers then work.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28296 - 2002-09-03 04:37 PM Re: My drive mappings don't work on XP
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It's definitely the way KiXtart is being called.

Please be aware that Windows XP interprets %0 differently than Windows 9x/NT/2000. Please implement any of the login.bat examples that have been posted here and use Kixtart 4.x. You also need to consider that only users with local administrative rights can e.g. copy into the %WINDIR%

Below is an example login.bat for all Windows OS:
code:
@ECHO OFF

REM format console window to default size
MODE CON: COLS=80 LINES=25

ECHO Verifying / Updating Script Software Installation

REM detect the operating system and go to the appropriate segment

VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_2K

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_XP

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_98

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_95

VER | find "Millennium" > nul
IF not errorlevel 1 GOTO WIN_ME

GOTO DOS

REM client is running DOS
:DOS
ECHO.
ECHO No Login Script Available For DOS Clients
ECHO.
GOTO End

REM client is running Windows 9x
:Win_95
:Win_98
:Win_ME
ECHO.
ECHO Checking KiXtart files for Windows 9x/ME
ECHO.
REM the DEL command removes any Kixtart file from the %WINDIR%\SYSTEM directory
IF EXIST %WINDIR%\SYSTEM\KIX32.EXE DEL %WINDIR%\SYSTEM\KIX32.EXE >NUL
IF EXIST %WINDIR%\SYSTEM\KX*.DLL DEL %WINDIR%\SYSTEM\KX*.DLL >NUL
IF EXIST %WINDIR%\KIX*.DAT DEL %WINDIR%\KIX*.DAT >NUL
%WINDIR%\COMMAND\XCOPY %0\..\KIX32.EXE %WINDIR%\ /D /H /I /R /V /C >NUL
%WINDIR%\COMMAND\XCOPY %0\..\KX*.DLL %WINDIR%\ /D /H /I /R /V /C >NUL
%WINDIR%\COMMAND\XCOPY %0\..\KIXTART.411 %WINDIR%\ /D /H /I /R /V /C >NUL
GOTO Run9xScript

REM client is running Windows NT/2000/XP
:Win_NT
:Win_2K
:Win_XP
ECHO.
ECHO Checking KiXtart files for Windows NT/2000/XP
ECHO.
REM the DEL command removes any Kixtart file from the %WINDIR%\SYSTEM32 directory
IF EXIST %WINDIR%\SYSTEM32\KIX32.EXE DEL /F /Q %WINDIR%\SYSTEM32\KIX32.EXE >NUL
IF EXIST %WINDIR%\SYSTEM32\KX*.DLL DEL /F /Q %WINDIR%\SYSTEM32\KX*.DLL >NUL
IF EXIST %WINDIR%\KX*.DLL DEL /F /Q %WINDIR%\KX*.DLL >NUL
IF EXIST %WINDIR%\KIX*.DAT DEL %WINDIR%\KIX*.DAT /Q >NUL
ECHO y| XCOPY %LOGONSERVER%\NETLOGON\KIX32.EXE %WINDIR%\ /D /H /I /R /V /C >NUL >NUL >NUL
ECHO y| XCOPY %LOGONSERVER%\NETLOGON\KIXTART.411 %WINDIR%\ /D /H /I /R /V /C >NUL >NUL >NUL
GOTO RunScript

REM run the logon script for Windows NT/2K/XP
:RunScript
ECHO Loading Logon Script for Windows NT/2K/XP, Please Wait...
ECHO.

REM check whether Kixtart is installed locally
IF EXIST %WINDIR%\KIXTART.411 GOTO LocalExe
IF EXIST %LOGONSERVER%\NETLOGON\KIXTART.411 GOTO RemoteExe
GOTO KixtartError

REM Kixtart is installed locally
:LocalExe
%WINDIR%\KIX32.EXE %LOGONSERVER%\NETLOGON\LOGIN.KIX
GOTO End

REM Kixtart is not installed locally
:RemoteExe
%LOGONSERVER%\NETLOGON\KIX32.EXE %LOGONSERVER%\NETLOGON\LOGIN.KIX
GOTO End

REM run the logon script for Windows 9x/ME
:Run9xScript
ECHO Loading Logon Script for Windows9x/ME, Please Wait...
ECHO.

REM check whether Kixtart is installed locally
IF EXIST %WINDIR%\KIXTART.411 GOTO 9xLocalExe
IF EXIST %0\..\KIXTART.411 GOTO 9xRemoteExe
GOTO KixtartError

REM Kixtart is installed locally
:9xLocalExe
%WINDIR%\KIX32.EXE %0\..\LOGIN.KIX
GOTO End

REM Kixtart is not installed locally
:9xRemoteExe
%0\..\KIX32.EXE %0\..\LOGIN.KIX
GOTO End

:KixtartError
REM Display an error message and notify the Systems Administrator since the user won't be doing it anyway
ECHO.
ECHO Error loading the NMRC-NT logon script
ECHO.
ECHO Please notify the Systems Administrator!
ECHO.
NET SEND REDPOINT "Error loading the NMRC-NT logon script for user "%USERNAME%" on computer "%COMPUTERNAME% >NUL >NUL
PAUSE
GOTO End

:End
ECHO.
ECHO.
ECHO Finishing Login...

@ECHO OFF
CLS
EXIT 0



[ 03. September 2002, 16:53: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#28297 - 2002-09-06 06:20 AM Re: My drive mappings don't work on XP
StaynZ Offline
Lurker

Registered: 2002-09-06
Posts: 1
I am having this same problem. But on both 2k and Xp. It will load the first time you log on, but sometimes you will loose a drive mapping and if you just log off and back on the script won't execute. You have to completely reboot. I updated to the newest version and still get the same problem. Anybody else have this problem?
Top
#28298 - 2002-09-06 07:52 AM Re: My drive mappings don't work on XP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
StaynZ,

Welcome to the board!

Have you applied the following FAQ?

[url=http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=10;t=000024][/url]

In other words, insure that the logon script processes first before the user dives into the machine.

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 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.074 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org