Monday, January 11, 2016

Error: "Citrix HDX engine has encountered a problem and needs to close"

Cause:

1.)  Is to be a bad driver or previous legacy receiver client install that had gone through an upgrade process. Upgrade to latest receiver client 4.0 & above.

2.) The usual suspects are printers - deleting any that are offline and going through mapping just one at a time. Also recreating the user’s desktop profile and corresponding roaming one if one exists helped us to resolve our HDX crashes. HK_Current_User \printers\connections
Re-created user profile and problem went away.

3.) This Proxy setting is located in HKLM/Software/Citrix/Ica Client/Engine/Lockdown Profiles/All Regions/Lockdown/Network/Proxy. (Key Path is same in HKCU.) Set StringValues for both AltProxyHost and ProxyHost to NONE. Instanly started working.

4.)  We have applied this adm:
C:\Program Files (x86)\Citrix\ICA Client\Configuration\icaclient.adm which comes with the Receiver client. Previously we didn't use this policy.
After applying it and setting most HDX settings I have had no HDX crashes with any user.

Here are my configured adm settings:

Citrix Components/Citrix Receiver/Client Engine 
-> ICA File Settings = Enabled
-> RemoveICAFile = Enabled

Citrix Components/Citrix Receiver/Network routing
-> Session reliability and automatic reconnection Enabled
-> Enable automatic reconnection Enabled
-> Enable session reliability (has precedence if both are selected) Enabled 
-> Number of retries = 3
Citrix Components/Citrix Receiver/Remoting client devices
-> Client drive mapping Enabled 
-> Enable client drive mapping Enabled
-> Read-only client drives Disabled 
-> Do not map drives 
-> Client printers Enabled 
-> Clipboard Enabled 
-> USB Plug-n-Play Devices Enabled 
Citrix Components/Citrix Receiver/User authentication
-> Local user name and password Enabled 
-> Enable pass-through authentication Enabled 
-> Allow pass-through authentication for all ICA connections Enabled 
-> Use Novell Directory Server credentials Disabled 
Citrix Components/Citrix Receiver/User experience
-> Client audio settings Enabled 
-> Enable audio Enabled 
-> Sound quality High 
-> Enable Real-Time Transport Disabled 
-> Lowest Port Number 16500 
-> Highest Port Number 16509


Monday, October 12, 2015

Understanding Citrix XenDesktop Machine Creation Services

http://infrastructureadventures.com/2011/05/18/understanding-citrix-xendesktop-machine-creation-services/

Thursday, October 8, 2015

xendesktop-setup-wizard with personal-vdisk-drives

http://carlwebster.com/citrix-xendesktop-7-1-provisioning-services-7-1-xendesktop-setup-wizard-write-cache-personal-vdisk-drives/

Saturday, August 8, 2015

SystemArgumentException:

How to resolve SystemArgumentException: The path is not of a legal form error in Citrix Receiver

I have been getting this error in Receiver 4.1 quite a lot recently.
ReceiverError
It seems to occur when you upgrade or reinstall Receiver.
The fix is to rebuild your profile but I have have a more targeted fix which I have outlined below:
1. Close down Receiver
2. Terminate the process wfcrun.exe using Task Manager. The process may restart itself and require terminating for a second time.
 terminate_wfcrun
3. Delete %APPDATA%\ICA Client
4. Log off and back on again the problem should be resolved.

Tuesday, March 31, 2015

Application usage report or Citrix report showing number of times application executables has been run

How do I determine when users last used a published application?

  In Resource Manager, under Reports you should have an option called Process Summary. Once you select that, you can specify All Servers, All Users, Select instances by path, Report all instances, and then choose the process executable (assuming the path is the same on all servers). After that specify your date range. Choose to display the Times and Users. Once generated, you should see a nice canned report that lists the users who launched that executable.

If you want to see when each user actually used the executable, you may need to run the User Summary report.

 

EDGESIGHT:  You can use the following report type if you r using Edgesight.

Published Application User Count - Details
Published Application Launch Summary
Session Duration.

Tuesday, March 24, 2015

Cannot connect to the Citrix XenApp server. SSL Error 61

Users start to get error " Cannot connect to the Citrix XenApp server. SSL Error 61: You have not chosen to trust the SSL certificate"



Cause:  SSL certificate has been renewed in Access Gateway or any upgrade happened in Access Gateway / Netscaler version

Solution:

1.) Upgrading the Citrix Receiver to Latest version (4.2.0.10) may fix the issue
2.) In some cases clearing the Temporary Internet Files may also be needed.

Tuesday, August 5, 2014

Citrix Web Interface IIS default Website Certification renewal

http://www.digicert.com/csr-creation-microsoft-iis-5-6.htm

http://www.digicert.com/ssl-certificate-installation-microsoft-iis-5-6.htm

CSR creation document:












Thursday, February 13, 2014

"There Is Not Enough Space on Drive" When You Extract SQL Server 2000

While installing SQL server Enterprise manager 2000 " "There Is Not Enough Space on Drive"


Resolution:


Please try to install the SQL Software via Add New programs option in Control Panel ----> Add/Remove Programs

1. Control Panel ----> Add/Remove Programs
2. Select Add New Programs in left side
3. Click on CD or Floppy
4. Click Next
5. Select Browse and mention the path where software .exe is available
6. Proceed with Next on further screens
7. Even if you get the same error just click Next the Software will get    installed automatically.


Friday, April 26, 2013

Windows could not start the Independent Management Architecture on Local Computer…contact the service vendor, and refer to server-specific error code -2147483626

While restarting the IMA Service in the Citrix server it will end up with the below error

"Windows could not start the Independent Management Architecture on Local Computer…contact the service vendor, and refer to server-specific error code -2147483626 "

Error Screenshot:
 
Resolution:

1. Please configure the Database again in the server using the below command

Dsmaint config /user:SQLusername /pwd:SQLpassword /dsn:"c:\program files\citrix\independent management architecture\yourdsnfile.dsn"

Whereas,
SQLusername: I used my account Domain\username (HAM\C52179va). make sure your account has Full admin rights in the server
SQLpassword: Use your acount password
yourdsnfile.dsn : MF20.dsn .

Also make sure to pint to Correct Drive where Citrix is installed in the server.

For Example:
C:\Documents and Settings\c50442va>Dsmaint config /user:HAM\C52179va /pwd:honda123 /dsn:"F:\program files\citrix\independent management architecture\MF20.dsn"

Once you run the command the output will be below


Then Finally,

Restart the IMA service, and also start MFCOM, Citrix SMA, Citrix WMI services.

Wednesday, April 10, 2013

The logon screen turns black after you press CTRL+ALT+DELETE


The logon screen turns black after you press CTRL+ALT+DELETE to log on to a Microsoft Windows Server 2003 based computer. Although you cannot see what you are typing, you can successfully log on to the Windows Server 2003 based computer. Then, after you successfully log on, the screen becomes visible.


This issue occurs if all the values under the following registry subkey are set to "0 0 0":
HKEY_USERS\.Default\Control Panel\Colors

Solution :

Export the registry subkey from another Windows Server 2003 based computer

1. Click Start, point to Run, type regedit in the Open box, and then click OK.
2 .Locate the following registry subkey:
HKEY_USERS\.Default\Control Panel\Colors
3. Right-click the Colors registry subkey, and then click Export.
4. In the File name box, type a name for the file.
5. Note the location where you will save the file, and then click Save.

Import the registry subkey into the affected computer

1. Click Start, point to Run, type regedit in the Open box, and then click OK.
2. On the File menu, click Import.
3 .Double-click the .reg file that you want to import.
4. Quit Registry Editor, and then restart the computer.

Friday, December 14, 2012

WMI error retrieving object MetaFrame_DisconnectedSession_Happening: Received error: 0x80041002: Not found

In Eventvwr under Application Log  WSH


Citrix Monitoring Script Event 2
Citrix MetaFrame Compute Event Rate:
WMI error retrieving object MetaFrame_DisconnectedSession_Happening:
Received error: 0x80041002: Not found 

Event Type: Error
Event Source: WSH
Event Category: None
Event ID: 1 
 Description:
Citrix Monitoring Script Event 2
Citrix MetaFrame Compute Event Rate:
WMI error retrieving object MetaFrame_DisconnectedSession_Happening:
Received error: 0x80041002: Not found 


SOLUTION:

Recompile the complete WMI repositories and then run the following commands for recreating these files.
  • Recompile Microsoft Windows .MOF files:
  • net stop winmgmtc: cd %systemroot%\system32\wbem rd /S /Q repository
    regsvr32 /s %systemroot%\system32\scecli.dll regsvr32 /s %systemroot%\system32\userenv.dll
    mofcomp cimwin32.mof mofcomp cimwin32.mfl mofcomp rsop.mof mofcomp rsop.mfl for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s for /f %s in ('dir /b *.mof') do mofcomp %s for /f %s in ('dir /b *.mfl') do mofcomp %s 


  • Recompile Citrix .MOF files:
  • cd %programfiles%\citrix\system32\citrix\wmi for /f %s in ('dir /b *.mof *.mfl') do mofcomp %snet start winmgmt

    Sunday, December 9, 2012

    Windows cannot open Help and Support because a system Service is not running

    Windows cannot open Help and Support because a system Service is not running 



    Windows cannot open Help and Support because a system Service is not running


    We have seen a rash of these problems on Windows Server 2003. Research seems to indicate the problem is related to the installation of Windows Server 2003 Service Pack 2 (SP2).
    The simplest fix we have found is this:
    • Open a Command Prompt
    • Run the following commands
      • %SystemDrive%
      • CD %windir%\PCHealth\HelpCtr\Binaries
      • start /w helpsvc /svchost netsvcs /regserver /install
    The service should install and start automatically.


    The Citrix XML Service service on Local computer started and then stopped


    CITRIX XML SERVICE :

    If you ever do any research on what port to use for the XML service in a Citrix XenApp environment, you’ll notice that there are options to share port 80 with IIS, use port 443 with SSL on IIS and finally port 8080.  I haven’t really found any official documentation on what is best practice but I was able to find forum posts where Citrix engineers recommend the use of port 8080 and not to rely on IIS.
    The process of changing the XML service port to 8080 is quite easy but since I know I’m bound to forget after not having to perform the configuration on a regular basis, I thought it would be good to write a blog post so I can reference it in the future.
    Begin by logging onto your XenApp server and stop the Citrix XML Service:
    clip_image002
    image
    Once the service has been stopped, proceed with opening up the command prompt as an administrator an executing the following command to unregister the Citrix XML Service port:
    ctxxmlss /u
    image
    Once the command completes successfully, proceed with executing the following command to register the port to 8080:
    ctxxmlss /r8080
    image
    Once the command successfully completes, proceed with starting the Citrix XML Service:
    clip_image002[6]
    … then open up the registry to confirm that the changes have been applied via the following registry key:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CtxHttp
    Name: TcpPort
    Type: REG_DWORD
    Data: 0x00001f90 (8080)
    clip_image002[4]
    Once the port change has been confirmed, log onto your Web Interface server and reconfigure the farm settings for your websites:
    image

    Wednesday, December 5, 2012

    Troubleshooting ICA Client / PNAgent Error 2306


    Program Neighbourhood Agent / PNAgent Error 2306
    On setting up the ICA Client 10.105 I received the following error on trying to connect via the applications listed under the PNAgent.', 'On setting up the ICA Client 10.105 I received the following error on trying to connect via the applications listed under the PNAgent:
    This was being caused because the ICA file was being deleted before the PNAgent had finished reading it… very strange. After browsing a few forum posts I found that by modifying my local workstation registry I could resolve the issue by changing the ‘RemoveICAFile’ entry to equal false:
    HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Client Engine\ICA File
    Alternately, if you are an Administrator wanting to resolve this for all of your PNAgent users and Web Interface users simply follow these instructions:
    Modify the \Inetpub\wwwroot\Citrix\MetaFrame\conf\default.ica on all of your Citrix Servers that have the web interface.
    Change the line "RemoveICAFile=yes" to "RemoveICAFile=no"

    Monday, November 19, 2012

    Windows could not start the Citrix XTE server on the local computer.

    Error: Windows could not start the Citrix XTE server on the local computer. The service terminated with a service-specific error 1

    Cause: Session Reliability port (2598) is not configured.
    Solution:
    Step 1: Verify the Session Reliability port is configured by using the below command 
    C:>netstat -an |find /i “2598″
    Step 2: Take the backup of httpd.conf file
    Step 3: Edit the C:\Program Files\Citrix\XTE\conf\httpd.conf (64 bit OS: C:Program Files (X86)

    copy the following content in httpd.conf file
    #CGP Listen Port
    Listen 2598
    # Log Level
    loglevel emerg
    Save the file and start the Citrix XTE Server service.


                                                                             OR

    Rename httpd.conf file in the path C:\Program Files\Citrix\XTE\conf and export from any of the working server. Then start the Citrix XTE Server service.

    Sunday, November 18, 2012

    The Citrix SMA service on Local Computer started and then stopped




    The Citrix SMA service on Local Computer started and then stopped



    “The Citrix SMA service on Local Computer started and then stopped. Some services stop automatically if they
    have no work to do, for example, the Performance Logs and Alerts service.”
    Resolution 1:
    To resolve the preceding issue, complete the following procedure:
    • Stop the SmaService.exe service by using the Task Manager.
    • Citrix SMA Service Properties and under the Log on tab, selectLocal System Account.
    • Set the SMA  Service to Manual and restart it, once the service started
    • Change Citrix SMA Service Properties and under the Log on tab, select Local Service Account.
    • Set the SMA  Service to Automatic and restart it

    Resolution 2:

    Please create a folder named " Active" in the path C:\Program Files\Citrix\Sma and try to start the service

    Tuesday, September 18, 2012

    4 States of Citrix Session

    Here are the 4 states and the differences between them:
    • Active - a user is active within a remote desktop session, for example, running applications, web browsing or similar stuff that involves using a mouse or keyboard.
    • Idle - User is considered idle after a period of mouse/keyboard inactivity in the RDP session. The user will be considered idle if there is no activity (e.g. keyboard strokes or mouse movement) in the configured time period. The default Terminal Services idle timeout is 1 minute, and the default for the Terminal Services Log is 5 minutes.
    • Disconnected - When a user is disconnected from the session but the session is still running. User could have been disconnect due to network or other failure or did not use proper log out procedure and just closed the Remote Desktop session window with the Close button [x]. This session is still running on the server and consuming resources, the users can reconnect and resume their disconnected session.
    • Remote Control - user is in remote control state if a user is remote controlling another user (also known as shadowing on Citrix servers).

    Tuesday, September 4, 2012

    Citrix Client Error 2320 (AllowHotKey)

    Error: "Citrix online plug-in Configuration Manager: No value could be found for (AllowHotKey) that satisfies all lockdown requirements. The lockdown requirements in force may be conflicting"

    The solution was a bit tricky, I tried several fixes from Citrix forums and articles, but I ended just deleting the Citrix key under the user part of the registry on the clients (HKEY_Current_user\software\Citrix). After deleting everything worked like a charm.

    Thursday, June 21, 2012

    Microsoft App-V

    Microsoft Application Virtualizationalso known as App-V formerly Microsoft SoftGrid ) is an application virtualization and application streaming solution from Microsoft.


    Microsoft Application Virtualization (MS App-V) platform allows applications to be deployed in real-time to any client from a virtual application server. It removes the need for local installation of the applications. Instead, only the App-V client needs to be installed on the client machines. All application data is permanently stored on the virtual application server. Whichever software is needed is either streamed or locally cached from the application server on demand and run locally. App-V applications are also sandboxed from each other, so that different versions of the same application can be run under App-V concurrently


    MS App-V thus allows centralized installation and management of deployed applications. It supports policy based access control; administrators can define and restrict access to the applications by certain users by defining policies governing the usage. The App-V client presents the user with a list of applications, to which the user has access. The user can then launch a virtualized instance of the application. Depending on the configuration, the systems administrator can be either notified of the action via email or it can require an explicit confirmation from the administrator for the application to start streaming and initialize or it can just simply check the Active Directory for the user's rights and stream the application to the user if it is authorized to run the application. The App-V client can also install local shortcuts that bootstrap the process of launching individual virtualized software instances.



    Architecture

    lthough App-V is best known for being deployed using the dedicated App-V Management infrastructure, these days Microsoft offers three deployment options. These three options are significantly different from an architectural standpoint: Dedicated App-V Management Server, Shared System Center Configuration Manager Architecture, and "Stand-alone" Mode wherein the application may be delivered manually.

    App-V Application Virtualization is composed mainly of two components – SystemGuard and App-V Sequencer. SystemGuard tracks and analysis configuration repositories and resources used by the application and intercepts the use of these resources, redirecting them to the virtualized instances of the resources. Virtualized resources include virtualized data such as user profile information and data; virtualized system services, such as COM controls, windows services and copy/paste abilities; and virtualized configuration repositories like registry hives and INI files

    App-V sequencer is the component which packages an application for virtualization and streaming. It also packages specific DLL files that it might require at the client side. It then packs all the application code and data into App-V's proprietary format that makes it more suitable for streaming

    At the client, when a streaming request is made to an App-V server, portions of the entire sequencer package are transferred to the client, who unpacks and initializes the SystemGuard environment and hosts the application inside it (with System Center Configuration Manager and the stand-alone client, the entire package contents are transferred). Each package is cached by the client for the duration of the application session. User settings are stored in the local system itself.
    Virtualized application packages can also locally reside at the client computer, thus eliminating the need of application server and streaming. Microsoft Systems Management Server can be used to push these packages to the client computer in the absence of a virtual application server. In this scenario, the App-V SMS Connector can be used to locally manage the application packages.

    Limitations

    • Microsoft Office plug-ins: Although one can sequence Microsoft Office plug-ins, it is not advised to sequence them due to many technical & usage issues. For example, in a situation where there are more than two plug-ins used by a user, if they are sequenced separately, then the user does not have control over which plug-in sequence starts when he opens a document. The only work around to resolve the issue is by creating a single suite or dynamic suite of all the plug-ins.
    • Application Size: If the maximum client cache size is set to at least 4 GB (The max can be 64 GB), then the maximum size of application (sft file) which can be streamed on that machine is 4 GB. All applications that have an installed footprint greater than or equal to the max client size, set by the client, should not be sequenced. The maximum application size Softgrid can handle is 4GB, due to the use of the FAT32 file-system.[5]
    • Device Driver: App-V presently does not support sequencing of kernel-mode device drivers; thus any application that installs a device driver cannot be sequenced. The only exception to this is when the device driver can be pre-installed locally; in this case, the application is sequenced without the device driver.
      • Auto Update: Applications with automatic updates should not be sequenced if their update mechanism cannot be disabled. Sequenced applications usually fail to update. In addition, allowing auto-update leads to non compliance of application version.
      • Services: Services can be started when an application starts and shuts down or when an application main executable terminates. Only user-mode services are suitable candidates for sequencing.
      • COM+: Some applications which use COM+ might not work properly in a virtual environment.
      • Internet Explorer & Service Packs: Microsoft does not support sequencing of any version of Internet Explorer.
      • Roaming Profiles: The default local cache location is %APPDATA%, this resides inside a folder that travels with roaming profiles, and will cause applications to fail often as files fail to sync using current best practices for roaming profiles in Windows Vista and Windows 7. Users will have to exclude the Softgrid Client folder from their syncing rules, or use an alternative location.

    Friday, June 8, 2012

    Citrix Services


    Here is an excerpt from the tech article:
    Service Name
    Executable
    Description
    Citrix ADF Installer Service (ADF Installer Service)
    AgentSVC.exe
    Used by Installation Manager in Enterprise and Platinum versions to install packages onto Presentation Servers
    Citrix Client Network (Client Network)
    cdmsvc.exe
    Handles the mapping of client drives and peripherals within ICA sessions
    Citrix CPU Utilization Mgmt/Resource Mgmt
    ctxcpusched.exe
    Used in Enterprise and Platinum versions to manage resource consumption
    Citrix CPU Utilization Mgmt/User-Session Sync (4.0 only)
    ctxcpuusync.exe
    Used in Enterprise version to synchronize user IDs of processes with their respective owner
    Citrix Diagnostic Facility COM Server (Diagnostic Facility COM Server)
    CdfSvc.exe
    Manages Diagnostic Facility tracing when used to diagnose problems with the Citrix Server
    Citrix Encryption Service (Encryption Service)
    encsvc.exe
    Handles encryption between the client device and the Citrix Server
    Citrix Health Monitoring and Recovery (4.5 only)
    HCAService.exe
    Provides health monitoring and recovery services in the event problems occur
    Citrix Independent Management Architecture
    (Independent Management Architecture)
    ImaSrv.exe
    Provides management services within the Citrix farm
    Citrix License Management Console
    (License server only)
    tomcat.exe
    Provides the web-based interface for licensing administration
    Citrix Licensing WMI (License server only)
    Citrix_GTLicensingProv.exe
    Provides information and notification regarding licensing events on the license server
    Citrix MFCOM Service (MetaFrame COM Server)
    mfcom.exe
    Provides COM services which allow remote connections of the management consoles
    Citrix Print Manager Service
    CpSvc.exe
    Handles the creation of printers and driver usage within Citrix sessions
    Citrix Resource Manager Mail (Resource Manager Mail)
    MailService.exe
    Used in Enterprise and Platinum versions to send email alerts when thresholds in the server farm have been exceeded
    Citrix Services Manager (4.5 only)
    IMAAdvanceSrv.exe
    Allows the components of Presentation Server to interface with the operating system
    Citrix SMA Service
    SmaService.exe
    Monitors the event log and Citrix WMI to raise alerts in the Access Suite Console (4.0) or Access Management Console (4.5)
    Citrix Streaming Service (4.5 only)
    RadeSvc.exe
    Used in Enterprise and Platinum versions to manage the Citrix Streaming Client when streaming applications
    Citrix Virtual Memory Optimization
    CTXSFOSvc.exe
    Used in Enterprise and Platinum versions to rebase .dlls in order to free up server memory
    Citrix WMI Service
    ctxwmisvc.exe
    Used to provide the Citrix WMI classes for information and management purposes
    Citrix XTE Server
    XTE.exe
    Handles SSL Relay and Session Reliability functionality
    CitrixLicensing
    (License server only)
    lmgrd.exe
    Handles allocation of licenses on the license server