|
|
|||||||
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 |
||||||||
|
|
|||||||
Try Changing the last line "Exit" to "Exit 0" |
||||||||
|
|
|||||||
same problem, Kix32.exe does not quit. |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Add this to the end of the batch file: Code: :END ECHO. ECHO FINISHED... ECHO. @ECHO OFF CLS |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
it's gone |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Oh sorry Richard. You were correct about the missing % in %LOGONSERVER, it was an typo on this page. Thanks for that. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |