Great, let us know the outcome please.

In the batch file you could use %computername% to see if it is a xen server or not just like @wksta in kix it returns the name of the system. You can then start the xd4clientname app if it is a xen server or skip it if it is a regular system.

AD settings or the GPO version are both logon scripts so imho they should run at the same stage during the logon process.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.