estradac,
Why are you using a .bat file? Are you in an Active Directory domain? If so, setup a GPO to launch the login script. From what you posted, the only time that you dont launch the KIX script is with an Unknown OS, you could totally get rid of that. If you are unsure how to setup the GPO, you can either search the forum or shoot me an email and I can walk you through it. I used to try and run this using a .bat file, and it never worked correctly. Once i moved to the GPO, it works great.

talk to you later

Aaron