Citrix session remote shadowing - citrix

This is Citrix technology based question. I need to develop windows app which should have functionality of remote session shadowing. We have server on which XenApp server and XenApp SDK is installed, and we get session information from it by using PowerShell. Problem is that XenApp SDK does not provide shadowing functionality. Basically i need something like client to client session shadowing.
Is this possible at all?
Thank You!

You can shadow a session remotely using WtsOpenServer and WtsStartRemoteControlSession api, just like rds/terminal server sessions. You MUST however shadow FROM an Ica (Citrix) session.
For OS < Vista you can use WinStationShadow.
See also: http://www.remkoweijnen.nl/blog/2007/10/30/new-terminal-server-apis-in-vista-sp1/

Related

How to debug the Citrix ICA error "The session limit has been reached"?

Apologies in advance for somewhat vague information. I am new to Citrix XenApp/XenDesktop technology and am just looking for generic troubleshooting information.
At my place of employment we have kiosks that are configured to connect to a SaaS webapp. These kiosk have either the Citrix XenApp or XenDesktop installed.
One of the icons launches the IE browser that connects to the SaaS app using a preconfigured user account. Sometimes, however, instead of launching the browser, the system displays the "The session limit has been reached. Please contact your system administrator." error shown in below image.
The people administering these kiosks think that this message comes from the SaaS web application but that application does not enforce any limits on how many session are open for a given account under a given time.
Also considering how Citrix XenApp/XenDesktop works I would think (but maybe I am wrong) that if the SaaS app did reject a user login, we would be displayed an error message in Internet Explorer instead of this ICA prompt.
So I think that the issue here could be that the message is not about login sessions made to the background SaaS app but either about Citrix sessions or perhaps previous IE browsers somehow running in the background(?)
However our company's Citrix team looked at this and noticed that "Citrix was still active" when this prompt was displayed. The conclusion was then that Citrix is for that reason not the cause here.
So I wanted here to ask some questions on what things I could consider as causes and where I could look in the hopes of getting started on this issue.
This would be for XenApp / XenDesktop 7.18.
The questions I have:
Does XenApp / XenDesktop have log files that can be consulted for
debugging issues like this?
Is it possible to get XenApp / XenDesktop to run in debug mode (to
output more details to the log files)?
Does Citrix have configuration settings that could lead it to
have an issue like this?
A. First check the event logs and see when you facing this issue so does any event logs generated.
B. Also you can check the ICA configuration tool for session settings and checked if session settings are set to NEVER.
C. The ICA listener configuration tool is located at Start > All Programs > Citrix > Administration Tools > ICA Listener Configuration.
You are on the right track with the SaaS application itself reporting the error. If this Citrix session was already active when the icon was clicked again and the preconfigured user was already logged into the SaaS application, that would account for this error. To investigate, logout the Citrix session and try clicking the icon again, or check SaaS application to see if that preconfigured users is already connected.
Is the same user used for all these kiosks or is each kiosk supposed to have a unique user? Can this preconfigured user log in multiple times?

Check if someone is using a remote desktop connection to a computer

I want to check whether a computer is being used by a remote desktop connection from another computer or not.Is there anyway to do it in C#.
WTSEnumerateSessions is the Win32 API to use.
Once you've found the right P/Invoke signature for calling it, you can look at the names of the windows stations returned

connecting from Linux to windows without logging off the current user on windows

what I'm trying to achieve is to log from linux to a windows machine which is already being used by one user who should not be logged off and the system should be working with both the users simultaneaously .I'm using krdc to connect to windows machine from linux,which logs off the user when other user logs in.Is there any other way to achieve my intension.
Thanks and Regards
You need to have the real Terminal Services installed. Usually the windows (Home,Professional, etc) can be enabled to have Terminal services but only for a 1 single session. If you install Terminal Services you will need to pay the license for users.
To allow multiple connection you should use VNC/teamviewer (is the most simple way to achieve what you want).

Logon Windows XP with smartcard

Suppose that I had an SDK to develop an application on smartcard to store my password and acts as an Authentication server toward Windows XP. That is, when an user wants to log on Windows XP with a certain username and password, Windows XP will send this account's information to smartcard and wait for a response. If smartcard says YES, user will be granted to log in.
This is my idea but I don't know how to implement it with Windows XP. I have designed an interface between smartcard and Windows XP but I don't know where to begin? I must write my logon application (prefered in C#.NET) to replace the actual standard logon process of Windows XP? How can I intervene in the Windows XP process?
I highly appreciate your helps
Best regards,
Hai-Binh LE
Smart Card Authentication is worth a read.
Write custom GINA:
http://en.wikipedia.org/wiki/Graphical_identification_and_authentication
and
http://msdn.microsoft.com/en-us/magazine/cc163803.aspx
and
http://msdn.microsoft.com/en-us/magazine/cc163786.aspx
But it is not trivial task.

Detecting Windows ID of logged-in user in RIA

What is the best way to detect the current user Windows ID (on a corporate LAN on a Windows machine) in RIA?
I assume I should use WindowsAuth for this
In your web.config file, set the authentication mode to "Windows". Also, in your client (assuming you're using the Business Application Template), you'll need to set webContext.Authentication to a new instance of WindowsAuthentication in App.xaml.cs.