Solved

Getting a count of VM users

Posted on 2013-05-15
5
335 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Ayman Bakr earned 500 total points
ID: 39168372
0
 
LVL 67

Author Comment

by:sirbounty
ID: 39171388
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
ID: 39171652
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
ID: 39171693
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
ID: 39173812
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

728 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