Solved

Getting a count of VM users

Posted on 2013-05-15
5
301 Views
Last Modified: 2013-05-22
I'm just looking to obtain the number of users that have access to, and/or are actively using a virtual presence on our Citrix farms.
Is there a posh cmdlet that I've overlooked that will retrieve this information?  I seem to only be finding session counts...
0
Comment
Question by:sirbounty
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Ayman Bakr earned 500 total points
Comment Utility
0
 
LVL 67

Author Comment

by:sirbounty
Comment Utility
Not sure that's it.  I tried pulling it apart to determine how it was arriving at the results.  I finally ran it as-is - the result is 0 users, although the working log file does show seemingly valid numbers; not sure why they're not being brought over in the total.
0
 
LVL 23

Expert Comment

by:Ayman Bakr
Comment Utility
Where did you run it on? You should have run it on one of the XenApp servers; moreover, you should run in an elevated cmd.
0
 
LVL 67

Author Comment

by:sirbounty
Comment Utility
I found the problem in the comments below, the command to split the string had too many spaces in it.  Reducing that to 7, instead of the 15 it was coded to strip out, returned the current counts.
However, I'm more interested in totals of all who have the ability to access XenApp.  I'm wondering if queriying our AD groups may be a better approach...
0
 
LVL 23

Assisted Solution

by:Ayman Bakr
Ayman Bakr earned 500 total points
Comment Utility
Of course the script will return the total of those connected.

In order to get the number of users who have access you best bet is querying AD as you have noted out. Now, how to do this depends on what is your structure in AD and how you implemented the access to XenApp.

If you implemented an AD security group for each published application then you can query each group to get the number of users having access for each application; but adding them up WON'T give you the total number if you have users having access in more than one application.

If you implemented putting all your users' having access to XenApp in one AD security group then you're done with a query to that AD security group.

If you have setup the TS profile tab in each user account having access to Citrix, then you can get the total number of users by querying AD user accounts who have the TS profile tab configured.

Another possible way is that if you have user TS profiles stored in a central location separate from the normal Windows profiles and you know that each of your users having access to Citrix have at least one time connected to Citrix (so you are sure he/she already has a TS profile created), then you can write a script to count the number of profiles in that central location to get the total number of users having access to Citrix.

Hope the above helps.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
This article will help you understand what HashTables are and how to use them in PowerShell.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now