Page 1 of 1 1
Topic Options
#7195 - 2001-03-01 01:13 AM Running Script
Anonymous
Unregistered


I have been fighting with running a login script for Win 98 clients on a Windows 2000 server for what seems like an eternity. I have decided to use Kixtart to do all my mappings, but I cant get my script to run. I have placed the kix32.exe program in the sysvol share along with the script and all the required .dlls. I have started the Kixrpc service on my domain controller. Currently this is the only domain controller at our network. The kix32 program starts, but it wont run my script. Any help would be appreciated. Thanks.
Top
#7196 - 2001-03-01 08:17 AM Re: Running Script
Anonymous
Unregistered


I am having similar problem, but the login script that I'm running is on Windows 95 clients.
Top
#7197 - 2001-03-01 08:40 AM Re: Running Script
Anonymous
Unregistered


You said that you put kix32.exe on the sys vol , but did 1.you put all the neccery dll's on sys vol?.
2.how did you write the logoin script.?

the best wat is to write a bache file like this:

logon.bat
%0\..\kix32.exe %0\..\your script.kix

Eran.



Top
#7198 - 2001-03-01 04:52 PM Re: Running Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
and don't forget to add the logon.bat file to the "Logon Script Name" field in usermanager/profiles. (or "Users and Computers", as win2k calls it.)

Bryce

------------------
kix.isorg.net

Top
#7199 - 2001-03-01 09:02 PM Re: Running Script
Anonymous
Unregistered


Yes, I put all the .dll's on the sysvol too.
I get the login script running message so I know that it starts the program it just doesn't run my script. Here are the two scripts that I have:
Logon.bat

%\..\kix32 %\..\logon.kix

and my script:

? "Login script running..."

? " Synchronizing your system's clock..."
;synchronize with time server
SETTIME \\Executive
IF @error = 0
? "System clock synchronized"
ELSE
MESSAGEBOX ("Cannot synchronize the system clock. Please inform your administrator.",:XYZ Login Script", 0)
ENDIF

? "Now mapping network drives..."
?
;delete any previous drive mappings and check for errors
USE "*" /DELETE
IF @error = 0
?"Previous mappings deleted..."
ELSE
MESSAGEBOX ("Cannot delete previous drive mappings. Please inform your administrator.",:XYZ Login Script", 0)
ENDIF

;MAP Drives by Group Membership

;Map Domain Dynamics to L: drive
IF INGROUP ("Dynamics") = 1
use L: "\\Executive\Dynamics"
? "Dynamics drive mapped"

;Map Domain Raisers Edge to S: drive
IF INGROUP ("Raisers Edge") = 1
use S: "\\Executive\Rewin"
? "Raiser's Edge drive mapped"
ENDIF

;Map common drives for Domain Users
IF INGROUP ("Domain Users"0 = 1
use O: \\Executive\shared
use K: \\Router\Ashared
use H: @HOMESHR
? :Global Drives and Home Directories Mapped"
ENDIF

EXIT

Any ideas?

Top
#7200 - 2001-03-01 09:30 PM Re: Running Script
kjhoskin Offline
Fresh Scripter

Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
make sure that your users have read/execute rights to the kix script in the sysvol.
Top
#7201 - 2001-03-02 12:00 AM Re: Running Script
Anonymous
Unregistered


Authenticated users have read/execute rights to the sysvol folder. I even put domain users on there as well seeing if that would allow them access to it
Top
#7202 - 2001-03-02 04:29 AM Re: Running Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
What do you have entered in the User Manager / profile / Logon Script, box?

Bryce

Top
#7203 - 2001-03-02 06:41 AM Re: Running Script
Anonymous
Unregistered


I have tried putting Kix32 in there, I have tried using that logon.bat file.
Both get the same result. The first line of the logon script runs and gives me a box that says logon script running.
Then it just ends and the mappings don't take. At one point I thought I saw an error message, but couldn't read it so I thought maybe there was something wrong with the script. But no matter what I tried I can't get it to run.

Top
#7204 - 2001-03-03 12:12 AM Re: Running Script
Anonymous
Unregistered


Put the command "pause" in the batchfile after the script is executing.
So you can read the error message.

------------------
http://www.sanderwinkel.com

Top
#7205 - 2001-03-02 07:09 PM Re: Running Script
dolph Offline
Fresh Scripter

Registered: 2001-02-21
Posts: 11
I have the exact same problem (excpet my domain controllers are NT4). My win98 computers will run my logon.bat just fine, but when it goes to run the kix script it just stops and closes the dos window.

Here is my logon.bat file:

@ECHO OFF
:checkcitrix
IF EXIST %WINDIR%\SYSTEM32\CHGUSR.EXE GOTO end

:checkkix
ECHO Verifying/Updating Script Software, Please Wait...
IF "%OS%" == "Windows_NT" GOTO WinNT
%windir%\command\XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
ECHO Running Logon Script...
%windir%\system\kix32.exe %0\..\logon.KIX
GOTO end

:WinNT
XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL
ECHO Running Logon Script...
%WINDIR%\SYSTEM32\KIX32.EXE %1 %0\..\logon.KIX
GOTO end

:end

It's rather frustrating, my NT machines run fine. Sorry to interupt this thread, but it seems I'm experiencing the same issue.

Top
#7206 - 2001-03-05 07:48 PM Re: Running Script
Anonymous
Unregistered


I put the pause statement in there and there doesn't seem to be any error. I don't know if maybe my logon script has some errors or what but it only displays the processing logon script please wait box and then it closes. Does it look like there are any issues with the writing of the script?
Top
#7207 - 2001-03-05 11:08 PM Re: Running Script
Mordac85 Offline
Fresh Scripter

Registered: 2000-02-16
Posts: 34
Loc: Urbana, OH, USA
I noticed the %windir% in your scripts. I haven't been able to get any script to use the environment variables correctly. I'm predominantly an NT/W2K shop with few 9x clients in a multi-domain environment.

Since I detect the OS type up front for my logs I use that Kix variable to adjust paths in my script.

Has anyone had luck with the windows environment varibles?

------------------
~Glenn

_________________________
~Glenn

==============================
Deadlines take their toll.
Please have exact change.

Top
#7208 - 2001-03-08 03:12 PM Re: Running Script
Anonymous
Unregistered


I don't know if it's gonna work but my kix32 is in the Netlogon dir same as the logon.bat. I also got a W2k server and 98SE boxes

Try this and hope it work
Manuel

Top
#7209 - 2001-03-08 03:38 PM Re: Running Script
Anonymous
Unregistered


What is wrong with putting the files under the netlogin directory everyone has rights to it and security is already in place also I don't know but the batch path should be %0\..\kix32.exe %0\..\your script.kix% I run this along with this in the login batch.
@ECHO OFF
:checkcitrix
IF EXIST %WINDIR%\SYSTEM32\CHGUSR.EXE GOTO end

:checkkix
ECHO Verifying/Updating Script Software, Please Wait...
IF "%OS%" == "Windows_NT" GOTO WinNT
%windir%\command\XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
ECHO Running Logon Script...
%windir%\system\kix32.exe %0\..\logon.KIX
GOTO end

:WinNT
XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL
ECHO Running Logon Script...
%WINDIR%\SYSTEM32\KIX32.EXE %1 %0\..\logon.KIX
GOTO end

:end

Top
#7210 - 2001-06-25 08:36 PM Re: Running Script
Anonymous
Unregistered


OK, so I have used the below example for detecting Citrix; it will look for the file chgusr.exe and goto end. Now, some of my Window 2000 boxes with terminal server have this file and the script will never start. I just want to detect citrix and not windows 2000 terminal server, is anyone know of another method via the BATCH file? Thanks in advance.

:checkcitrix
IF EXIST %WINDIR%\SYSTEM32\CHGUSR.EXE GOTO end

Top
#7211 - 2001-06-25 10:05 PM Re: Running Script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Hi Lan Man,

Perhaps you could look for the Shortcut file that Citrix puts on the system. If found take appropriate action.

Here is some code for finding Terminal Server and Citrix, but not to exclude them.
You could also search the Registry of the Citrix client and try to find a key that
Windows 2000 TS does not have.

code:
$NTSERVER = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions", "ProductType")
$TERMSERVER = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions","ProductSuite")
$LTRIX = EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix")
$CTRIX = EXISTKEY("HKEY_CURRENT_USER\Software\Citrix")

IF @INWIN = 1

IF ($NTSERVER<>"WinNT") AND (@DOS="5.0") AND ($TERMSERVER= "Enterprise|Terminal Server|")
; System is Windows 2000 Terminal Server
? "Found Terminal Server"
? "ERROR @ERROR: @SERROR"
; Quit or perform other task
ELSE
? "Unable to locate Terminal Server"
? "ERROR @ERROR: @SERROR"
; Quit or perform other task
ENDIF
ENDIF

IF ($LTRIX = 0) OR ($CTRIX = 0)
; The key was found
? "The Citrix Client was found on this system"
ELSE
; The key was not found
? "Unable to locate the Citrix Client"
ENDIF


NTDOC

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.066 seconds in which 0.027 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