LSQuery is used to collect, from the Citrix License Server, data necessary to assist in troubleshooting at the time of an issue.
Prerequisites
LSQuery can be run on any Citrix License Server for Windows v11.6.1 Build 10007 or later on one of the following Microsoft Windows platforms:
· Windows Server 2003 32-bit and 64-bit
· Windows Server 2008 32-bit and 64-bit
· Windows Server 2008 R2
· Windows 7 (v11.9 build 11007 or newer)
Installing LSQuery
To install LSQuery, copy the LSQuery.exe and ICSharpCode.SharpZipLib.dll files to the desired location.
How to Use LSQuery
To run LSQuery in the graphical user interface (GUI) mode, run LSQuery.exe. To run LSQuery in command line mode, use the following command line syntax from a command prompt window:
lsquery –nogui and press Enter
Click the help icon within the GUI mode, or use the –help switch in command line mode, for more details.
Security Permissions Required by LSQuery
LSQuery must be run as a user with Administrative privileges for all features to be functional. LSQuery is User Account Control (UAC) aware and prompts for elevated permissions if run by a non-administrative account.
Data Modified by LSQuery
LSQuery does not modify any data on the Citrix License Server; it merely creates a subdirectory called LSOutput with a zip file called LSData.zip.
How to Undo the Changes Made by LSQuery
Delete the LSOutput directory and LSData.zip file.
Uninstalling LSQuery
To uninstall LSQuery, perform the following steps:
1. Delete the LSOutput directory.
2. Delete the LSData.zip file.
3. Delete LSQuery.exe.
4. Delete ICSharpCode.SharpZipLib.dll file.
Read the original post here at the Citrix knowledgebase.