Page 1 of 1 1
Topic Options
#199807 - 2010-09-10 06:12 PM KIX (version 4.61) / Windows Server 2008 R2
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
Hi,

I’m testing Xenapp 6 on Windows Server 2008 R2. When I logon to our Windows 2008 domain using KIX version 4.61, kix32.exe stays open on the domain controller. We use a simple Kix logon script for mapping drives and distributing shortcuts to a personal folder in the users startmenu. It’s seems the script is running because all the mappings are created and the shortcuts are there. I think it’s the combination Windows Server 2008 R2 / KIX. Because we use the same script for Presentation Server 4.5 on Windows 2003 servers and there we don't see this problem. Does anybody know why kix32.exe does not quit?

Example Logon.bat:

 Code:
@echo off

IF %COMPUTERNAME% == CTRX-01 GOTO XENAPP
IF %COMPUTERNAME% == CTRX-02 GOTO XENAPP
IF %COMPUTERNAME% == CTRX-03 GOTO XENAPP

:XENAPP
"%LOGONSERVER%\NETLOGON\KIX32.exe" "%LOGONSERVER%\NETLOGON\LOGONSCRIPT.KIX" /f
GOTO END

:END


Example logonscript.kix:

 Code:
; Create Drives ***********

USE * /DELETE
USE N: \\APPL-01\apps
USE O: \\APPL-02\apps
USE P: \\APPL-03\apps
USE Q: \\APPL-04\apps
USE R: \\APPL-05\apps
USE W: @HOMESHR

IF INGROUP("ApplTopdesk")
USE K: \\appl-01\documents
Endif

; Start Group Evaluation ***********

IF INGROUP("ApplAccess")
COPY "Q:\Xenapp\SPECAPPS\Microsoft Access 2010.lnk" "W:\StartMenu\Programs\Persoonlijk\"  
ENDIF
 
IF INGROUP("ApplXmind")
COPY "Q:\Xenapp\SPECAPPS\Xmind.lnk" "W:\StartMenu\Programs\Persoonlijk\"
ENDIF

IF INGROUP("ApplKlicViewer")
COPY "Q:\Xenapp\SPECAPPS\Klic-viewer.lnk" "W:\StartMenu\Programs\Persoonlijk\"
ENDIF

Exit


Attachments
213.jpg
Description:




Edited by Jeroenski74 (2010-09-16 05:22 PM)

Top
#199822 - 2010-09-13 08:20 AM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Try Changing the last line "Exit" to "Exit 0"
Top
#199823 - 2010-09-13 09:52 AM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Arend_]
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
same problem, Kix32.exe does not quit.
Top
#199911 - 2010-09-16 09:04 AM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Add comments displayed at all important steps (including the end!) and run the script from an interactive prompt on the problem server to see if the script really is processing correctly.

Also try changing the "Exit 0" to "Quit 0" - quit tells the command interpreter to exit, so if something funky is going on like the script keeps re-executing then the Quit should stop that.

BTW, is there a copy/paste error on this line, you are missing a "%" after the second LOGONSERVER:
 Code:
"%LOGONSERVER%\NETLOGON\KIX32.exe" "%LOGONSERVER \NETLOGON\LOGONSCRIPT.KIX" /f


Top
#199923 - 2010-09-16 05:51 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Richard H.]
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
Hi Richard,

I ran the script in debug mode (/d). The script is OK, no errors. I have 4 Windows Server 2008 R2 servers ready with Xenapp 6. It doesn't matter on which Citrix server or domain controller the user logs on. I tried the "quit 0" command, unfortunately the same result. Kix32 will not quit.


Edited by Jeroenski74 (2010-09-16 06:08 PM)

Top
#199924 - 2010-09-16 06:29 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I see "example" above describing your script. I think you may need to provide your script if you want us to be much more help.
Top
#199933 - 2010-09-16 11:54 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Allen]
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Add this to the end of the batch file:

 Code:
:END
ECHO.
ECHO FINISHED...
ECHO.
@ECHO OFF
CLS

Top
#199937 - 2010-09-17 09:26 AM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
 Originally Posted By: Jeroenski74
Hi Richard,

I ran the script in debug mode (/d). The script is OK, no errors. I have 4 Windows Server 2008 R2 servers ready with Xenapp 6. It doesn't matter on which Citrix server or domain controller the user logs on. I tried the "quit 0" command, unfortunately the same result. Kix32 will not quit.


When you say you ran it in debug mode, do you mean that you ran it as a logon script in debug mode or just from a command prompt?

What about that %LOGONSERVER typo?

Top
#199954 - 2010-09-17 09:59 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Richard H.]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it's gone \:\)
_________________________
!

download KiXnet

Top
#200014 - 2010-09-22 04:23 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Lonkero]
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
The problem is not solved.

I ran the script in debug mode (/d)from an interactive prompt on the problem server to see if the script really is processing correctly, as Richard asked me to.

I use the same script as under Example logonscript. The only difference is that when we go live there are more mappings and groups.

I wrote that the sript is working fine with Windows Server 2003 Citrix servers and Windows Server 2008 Domain Controllers. I only have this problem with Windows Server 2008 R2 Citrix servers and (the same) Windows Server 2008 DC's.

Top
#200016 - 2010-09-22 04:42 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Richard H.]
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
Oh sorry Richard.

You were correct about the missing % in %LOGONSERVER, it was an typo on this page.

Thanks for that.

Top
#200018 - 2010-09-22 05:19 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Have you tried creating a simple script just to see if it hangs?

 Code:
? @kix
? "Hit Enter to exit"
gets $RC


If that hangs, let us know. If not, add a drive mapping, and check again. Then a copy command, and check again. The idea is to add one key element at a time from your original script until you find where it is hanging.

Top
#200056 - 2010-09-27 11:21 AM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Allen]
Jeroenski74 Offline
Fresh Scripter

Registered: 2010-09-10
Posts: 6
Loc: Netherlands
Oké, I found something new.

With only the Start Group Evaluation section kix32.exe runs fine.

So Kix32.exe is having problems with creating drives under Windows Server 2008 R2. Even when I create a script with only 1 drive mapping command kix32.exe does not quit.



Edited by Jeroenski74 (2010-09-27 11:22 AM)

Top
#200058 - 2010-09-27 12:10 PM Re: KIX (version 4.61) / Windows Server 2008 R2 [Re: Jeroenski74]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Thats strange, I don't have that problem.
I remember we had a special hotfix from MS a while ago for 2008 R2. Because the NAP service was having trouble translating SID's to the name. This might be the same problem with you. The SID problem was relating to groups.

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 464 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.067 seconds in which 0.023 seconds were spent on a total of 14 queries. Zlib compression enabled.

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