[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Getting a count of VM users

Posted on 2013-05-15
5
Medium Priority
?
345 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 2000 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
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…

834 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