Recently something very strange happened to me when launching a citrix published application. Instead of launching the application, I was presented with a server desktop. Not quite what you would expect!
Anyway, after some troubleshooting I discovered that the problem was to be found in my AD user object. After adjusting the terminal services profile path with a Windows Server 2008 ADUC console, the attribute named "UserParameters" became corrupted.
Basically, there are 2 options to recover from this problem:
1. Recreate the user account, which is far from ideal.
2. Clear the "UserParameters" property, using this script:
Const ADS_PROPERTY_CLEAR = 1
Set objUser = GetObject _("LDAP://cn=MyUser,ou=MyOU,dc=MyDomain,dc=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "userParameters", 0
objUser.SetInfo
I sure hope this issue gets documented and/or solved soon.