Wednesday, July 30, 2014

Connecting to remote server failed with the following error message : The client cannot connect to the destination specified in the request.


I am trying to remotely connect my Citrix Xenapp server via PowerShell. When I ran the following PS command:

Invoke-Command -Session $s -ScriptBlock {Get-XAApplicationReport *}| Select-object Displayname, Enabled, @{n='accounts'; e={[string]::join(",",$_.accounts)}} | Export-Csv .\$comp.csv -NoTypeInformation

I got the following error:
Connecting to remote server failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting
Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionOpenFailed


Resolution :
Run below mention command and enter yes:-

PS C:\Documents and Settings\citrixadmin> winrm quickconfig


WinRM already is set up to receive requests on this machine.
WinRM is not set up to allow remote access to this machine for management.
The following changes must be made:

Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.

Make these changes [y/n]? y

WinRM has been updated for remote management.

Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
PS C:\Documents and Settings\citrixadmin>

Monday, July 28, 2014

Unable to launch your application. Contact your help desk with the following information: Cannot connect to the Citrix XenApp server. SSL Error 59: The server sent a security certificate identifying “xxx.xxx.xxx.xxx”, the SSL connection was to “abc.com"

Error :-

Unable to launch your application.  Contact your help desk with the following information:  Cannot connect to the Citrix XenApp server.  SSL Error 59:  The server sent a security certificate identifying “xxx.xxx.xxx.xxx”, the SSL connection was to “abc.com"




Background:-


Single workstation affected .

User can't  access any of the published applications from their workstations but could access them from another computer.  The problem is most likely an issue with user computer.


Checked Proxy setting  :-




Resolution:-



Unchecked "use a proxy server for your LAN" setting and check "Automatically detect settings"

launch the application it works fine.

Close the browser and try to launch the application , getting above mentioned error message.

Check proxy setting , it was set to previously configured setting

Unchecked "use a proxy server for your LAN" setting and check "Automatically detect settings"

launch the application it works fine.

We found out that a virus was the culprit on user computer.

Wednesday, July 9, 2014

PowerShell Command to search user session in Citrix Farm



PowerShell Command to search user session in Citrix Farm


Get-XASession | Where-Object {$_.ACCOUNTNAME -EQ "abc\nitin"}

Where abc is domain name and nitin is user name.