Simple..

1. Copy the XD4ClientName.exe to your NetLogon folder
2. Add the XD4ClientName.exe command to your existing batch file, immediately after the existing "Net Use" command.
3. Replace the current line "$computerprt = left (@wksta, 6)" in your kix script with the following 2 lines:
 Code:
$ComputerPrt = IIf(%XDClientName%,%XDCLientName%,@WKSTA)
$ComputerPrt = Left($ComputerPrt, 6)
4. Test!

As I said, this will result in an approximate 4 second delay on non Xen systems. If you can identify the Xen computer from within the BATCH file, you could do something like this in your batch file instead..
 Code:
If %COMPUTERNAME%==xenserver   XD4ClientName.exe
so it only runs when connecting to a Xen server. Try the 4 steps above first to see how it works, then figure out how to identify the Xen server(s) in the batch file and run the XD4ClientName command only when on a Xen system.

Glenn




Edited by Glenn Barnas (2011-05-27 01:05 PM)
Edit Reason: chars were missing
_________________________
Actually I am a Rocket Scientist! \:D