[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Getting a count of VM users

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

Are You Ready for GDPR?

With the GDPR deadline set for May 25, 2018, many organizations are ill-prepared due to uncertainty about the criteria for compliance. According to a recent WatchGuard survey, a staggering 37% of respondents don't even know if their organization needs to comply with GDPR. Do you?

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
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.

650 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