This message was deleted.
# citrix-vad
s
This message was deleted.
s
I remeber that i have seen something from @Guy Leech on twitter regarding this 😉
p
If memory serves me correctly this can be done via the WFAPI SDK using WFQuerySessionInformation
Also the Citrix Powershell snapins can be installed on the Server VDA machine and you can query the broker for the information too but this isnt a local query
g
Try my recently updated script function Get-WTSSessionInformation that calls the WTS API which is based on the good old WFAPI and let me know how you get on. https://github.com/guyrleech/Microsoft/blob/master/WTSApi.ps1
👍🏼 1
d
I knew you can offer something Guy 😁
Lots of cool information, which will help me someday for sure, but unfortunately the function doesn’t provide any information about the Citrix client type. I’m starting to think that this is not possible…
m
How does director do it? Get’s it from the DDC?
d
To be honest, I’m not sure Director even knows the type of client.
k
I think it does. A few years ago I got the connected Receiver/CWA data at a customer via an ODATA connection to the Director.
m
It knows the version number, you’ll need your own logic to derive the client from that
It would be a lot more useful if it did it for you though
d
Yes, that’s what I mean. It only knows the version number.
👍 1
m
There’s a controlup script that does it, let me see what it’s doing
Isn’t that what Guy is doing with the wfapi though?
d
Let me check, looks very promising…
m
I think you would need to build that code into Guys script that takes the client product ID and converts it to the Platform
d
YES! With Get-WTSSessionInformation I get the ClientProductID!
d
That should do it, thanks a lot for finding this!
m
The logic is there at the end of the script, you could reuse that
No problems it’s something that has been bugging me too
I figured someone must’ve worked it out
Make sure to fork guy’s script or get him to add the code to GitHub once you get it all working
d
@Guy Leech: I was wrong! Your script gives me exactly the information I need. It’s the ClientProductId. With the link Mike posted I can translate it or use the registry key. Great, so I can go on with my script, maybe I will publish it later. It’s a request from a customer.
👍 1