Solved

Getting a count of VM users

Posted on 2013-05-15
5
331 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
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…
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…

740 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