Citrix commands must be executed at the Citrix server or using remoting.
Symptoms
When you scan a Citrix XenApp Farm you may see the error
"Citrix commands must be executed at the Citrix server or using remoting. Make sure that your user account is a Citrix administrator and that the IMA service is started."
Cause
The user account being used to perform the scan does not have permissions to access the Citrix information.
Resolution
Within the Citrix management console ensure that the service account performing the scan is configured as a Citrix administrator with at least View Only privilege.