Log off citrix session

1.9k Views Asked by At

I want to terminate a session hosted in xen app server. When i pass the following parameter to execute on command line such as

/username:TestUser /domain:TestDomina /password:xxxxyyyz /cmdline:logoff using shell api ?

The wfc command line usgae pop up comes up. DOes it mean that we cannot log off using the command line option in wfc ?

Thanks

1

There are 1 best solutions below

2
On

To logoff the current session from the app the user is running you can use the following.

WTSLogoffSession(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, false)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa383836%28v=vs.85%29.aspx