Best Practices for Citrix and Terminal Servers

This section details Working Papers features that can be modified to improve performance on a Citrix or Terminal server.

Performance Considerations

Working Papers' performance in a Citrix or Terminal Server environment can be affected by two main factors: CPU usage and network bandwidth.

If you are experiencing any performance issues, verify that you have allocated adequate resources in these areas.

The following recommendations apply to the storage of Working Papers files in your Citrix environment.

  • Never store Working Papers files on the local drive (tsclient) of the PC accessing the Citrix environment.
  • In order to ensure your Working Papers files are available to clients who are not using a Citrix session, store your files on an area of your network that can be accessed under Windows as a mapped drive.

Network Licensing

The Commuter License Check Out feature is designed for users who check out portable work computers. When it is used in a Citrix environment, one user can sometimes lock all other users on the network out of Working Papers. We recommend not using Commuter License Check Out in a Citrix/Terminal Server environment.

Live Update

Live Update immediately distributes changes made in an engagement file to all other users in the same engagement. Any open windows that have their content modified by any user are immediately refreshed, which consumes network bandwidth and CPU processing power.

Live Update should be disabled in a Citrix/Terminal server environment. The best way to ensure that it is always turned off is to add a line to the CV.VER file that Working Papers checks for configuration information on startup.

To disable Live Update:

  1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
  2. On a new line, enter 'liveupdate=0'.
  3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Note: Do not use the setting found in Tools | Options | Advanced | Networking to disable Live Update. This setting only affects the active file. Modifying the CV.VER file disables Live Update for all Working Papers files.

User List Pane

The User List pane can cause an increase in network traffic when it is enabled and should be disabled unless it is essential to your processes. This is a per-user setting and should be modified for each user.

To disable the User List pane:

  1. Open the Start Menu in Windows and either:
    • Select Run...
    • Select the Search programs and Files field
  2. Type regedit.exe and press Enter. The Registry Editor opens.
  3. In the Registry Editor, find the key HKEY_CURRENT_USER\Software\CaseWare International\Working Papers\2018.00\Settings\UserListWindow.
  4. Double-click the key to open it. Change the value from 1 to 0.
  5. Click File | Exit.

This registry setting will be applied the next time you open Working Papers.

History Settings

History settings can affect the performance of networked Working Papers environments. These settings are applied on a per-file basis in Working Papers, so you will need to apply these best practices to each engagement file.

To disable History tracking:

  1. Click Engagement | History | Auto-Compare.
  2. Ensure that Automatically Compare Documents is set to None.
  3. Click the Settings tab and clear the check boxes for any items that do not require history tracking in your environment. When you track history for fewer items, you will consume less network bandwidth.
  4. Click OK.

Background Pagination

Background pagination can consume increased bandwidth on the network.

To disable background pagination:

  1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
  2. On a new line, enter 'BackgroundPagination=0'.
  3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Auto-Compare

Auto-Compare can be used to compare documents for changes based on different stages of document preparation. In a Citrix/Terminal Server environment, this feature can consume bandwidth and CPU processing power, and should be enabled only when needed.

To disable Auto-Compare:

  1. Click Engagement | History.
  2. Click the Auto-Compare tab and ensure that the drop-down menu displays None.
  3. Click OK.

CaseView

The CaseView Autosave option requires increased network traffic, and should be disabled if possible in these environments.

To disable Autosave:

  1. In CaseView, click Tools | Options | Autosave.
  2. Uncheck Enable Autosave.
  3. Click OK.

Data Store

The Data Store should be set up using the Data Store Administration Tool for optimal performance.

  • In the Settings tab of the Data Store Administration Tool, ensure that the Synchronization field is set to Only on program startup.
  • The Track Engagement field, also in the Settings tab, controls how files are tracked by the Data Store. For these environments, either Track But Do Not Share with Firm or Disable Tracking should be selected.
  • Note: The Track and Share with Firm setting should not be selected unless you are using CaseWare Tracker and have a requirement to monitor the files that other users are working on, as this feature consumes increased network bandwidth.

  • The ping frequency can be set in the CV.VER file. Pinging only updates the status icon in the user interface. Frequent pinging can reduce the responsiveness of the Data Store. The StorePingFrequency value sets the interval (in seconds) between checks to see if the Data Store is online.
  • To reduce the ping frequency:

    1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
    2. Locate the 'StorePingFrequency=xx' entry. The default value is 120 (seconds) but you can increase it to 500 or more.
    3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Anti-Virus Software

Some anti-virus software may conflict with Working Papers and SmartSync functionality by locking required files as they are scanned. For a complete list of these files, see Troubleshooting SmartSync.

Citrix and Terminal Server

This section offers some tuning advice specifically geared to Citrix/Terminal Server environments.

  • Change User /Install: This command places the server session into Install mode. In this mode, any programs writing to the registry have their keys automatically mirrored to the Shadow Registry.
  • Change User /Execute: This command places the server session into Execute mode. This is the default mode that applications are run in.

To populate the Citrix or Terminal Server Shadow Registry with default Working Papers settings:

  1. Log onto the Citrix/Terminal server and open a command prompt.
  2. Enter the following command to enable Install mode:
    • Change User /Install
  3. Run Working Papers and set desired program defaults.
  4. Exit Working Papers and revert to Execute mode with the command:
    • Change User /Execute

Check the Shadow Registry to ensure the appropriate Working Papers registry keys are present. As long as they are, any subsequent users logging into the Citrix/Terminal server should have settings automatically pushed to their registry branches.

SmartSync on Citrix and Terminal Server

This section offers best practices when using SmartSync in a Citrix/Terminal Server environment.

Central Administration

SmartSync enables Working Papers users to utilize far fewer network resources when sharing engagement files. SmartSync also enables remote or disconnected users to work on their own local copy of an engagement file, synchronizing their changes to the parent file when connected to the office network.

There are two typical use case scenarios for SmartSync within a Citrix/Terminal Server installation:

  • Remote workers who do not have access to the server while offsite.
  • Large engagements shared by multiple users where Working Papers performance is unacceptably slow.

Remote Staff and Citrix

Companies will often have remote teams of staff who work on an engagement file at a client site. These staff can use SmartSync to stay updated with each other's changes and work more effectively as a team in the field.

Large Engagements

On large engagements, the performance reduction in the client file can be substantial. This occurs because Windows disables its network caching as soon as two or more people share a file for reading and writing. For large files, this significantly increases the amount of traffic Working Papers sends across the network.

SmartSync can be used to create separate SmartSync children on the network storage. This ensures that each user has a single user copy of the engagement file, allowing Windows network caching to remain active.

SmartSync Path Customization on a Citrix Farm

One best practice is to use a fast network share that is available to all servers to host SmartSync for all Citrix users. This ensures users are managing SmartSync copies from the same location regardless of the server they are currently assigned. Each user should be assigned a unique path on the network share.

Paths in Working Papers always resolve to a UNC entry such as \\FileServer\path\ rather than a locally specified path such as C:\path\. There are two paths in a SmartSync environment that must be set correctly in order to store engagement files in the appropriate folder:

  • The Client File Path should be set to the folder containing the Sync Top-Level Parent file that all SmartSync copies are made from.
  • The SmartSync Path should be set to the folder where SmartSync file copies will be stored for each user. This should be a different network share for each user. Users who are not in a Citrix session may set a local system path.

After network shares are in place, create a script to set the default SmartSync Path for each user during login. The following script illustrates how user login can be automated in a Citrix environment:

  • SET SyncPath = \\File_Server\path\to\sync_copy_folder_root\
  • IF NOT EXIST %SyncPath%%UserName% MD %SyncPath%%UserName%
  • REG ADD "HKCU\Software\CaseWare International\Working Papers\20xx.xx\Settings" /v SyncPath /t REG_SZ /d %SyncPath%%UserName% /f

In the example above, File_Server\path\to\sync_copy_folder_root\ is the path to your SmartSync network store. Add these scripts to your login script.

To test that your login script performs as expected, launch a copy of Working Papers SmartSync through a Citrix session and ensure the correct SmartSync Path is set in Tools | Options | Default Paths.

Note: Some of your users who work offsite may use a local copy of Working Papers on a laptop or similar device. These users can set their SmartSync path to point to their local drive rather than a network share. If they do, they can work in their SmartSync files offline and can synchronize the files when they return to the office or connect by VPN. If they instead access Working Papers through a Citrix session, their sync copies should not be stored on their local drive.