Jump to content
Welcome to our new Citrix community!
  • 0

Count users connected in farm


David Griffiths

Question

10 answers to this question

Recommended Posts

  • 0

sorry I am a newbie at Powershell.

Tried script but got this error

PS C:\Users\adm_griffith> $users = Get-XASession | Select-Object AccountName -Unique | measure $users.count
Measure-Object : Property "104" cannot be found in any object(s) input.
At line:1 char:69
+ $users = Get-XASession | Select-Object AccountName -Unique | measure <<<< $users.count
+ CategoryInfo : InvalidArgument: (:) [Measure-Object], PSArgumentException
+ FullyQualifiedErrorId : GenericMeasurePropertyNotFound,Microsoft.PowerShell.Commands.MeasureObjectCommand

Link to comment
  • 0

The ouput is fine I only need the count of users.

Could you point me in the right direction for outputing the result to a sql table instead of a csv file.

I have created a database called Citrixcount with a table called count.

Afterward I can create a webpage to show the number of users accessing the citrix farm on a daily basis

Thanks

Link to comment
  • 0

Hi I am a newbie here,

 

I want to monitor user counts on server farm because of lots of user connection we are facing slowness.

Please can you please tell me where i need to run these command?

Where can i run these commands? On sharepoint .

 

I am trying to run these commands on my local windows server but getting below errors,

 

S C:\Windows\system32> Add-PSSnapin Citrix.*
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 1.
At line:1 char:1
+ Add-PSSnapin Citrix.*
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Citrix.*:String) [Add-PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
 

PS C:\Windows\system32> Get-XASession | Select-Object AccountName -Unique
Get-XASession : The term 'Get-XASession' is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-XASession | Select-Object AccountName -Unique
+ ~~~~~~~~~~~~~

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...