Please wait,
Processing your request...

    0%
  Business logo VanSoest.it  
  ... | Selecteer de Nederlandse taal | Print this page. | Linkedin page of Johan van Soest | User: Guest | Login

Postcard image. Click this to mail to Johan

WebHalla
 Content
  Management
   System


ICT-Hotlist Topic

Back to the ICT-Hotlist...
Don't miss the latest updates

Get XenApp application security information with PowerShell.

This PowerShell script getXenAppApplicationSecurity.ps1 generates a tabulator separated download file containing the XenApp Application display name and the security group or user name able to start the application.
The script will create one line per application and user name or group. This enables the output to be used with Excel PivotTables or Filtering to get all users / groups enabled for one application or find all the applications enabled for an user or group.
The output file directly opens in Microsoft Excel as can be seen below.

Limitations:

  • You must run this script on the Citrix XenApp server itself (no remoting implemented).
  • This script must run using an user account that is a Citrix XenApp administrator
  • The IMA service must be running on the Citrix server.

The script getXenAppApplicationSecurity.ps1

  
# This PowerShell script getXenAppApplicationSecurity.ps1 generates a tabulator separated
# download file containing the XenApp Application display name and the security group or user name
# able to start the application.
#
# (C) Copyright 2013-2019 Johan van Soest. [http://www.vansoest.it]
# Version 1.0 05-11-2013 by Johan van Soest
# Version 1.1 22-03-2014 by Johan van Soest (added browsername option & Snapin detection)
# Call the script as follows  .\getXenAppApplicationSecurity.ps1 >> FileName.csv

# Load the Citrix components
if ( (Get-PSSnapin -Name Citrix* -ErrorAction SilentlyContinue) -eq $null )
{
    Add-PSSnapin Citrix* 
}

# Get all the applications information
$apps=Get-XAApplicationReport -BrowserName *

# Write the table header
Write-output "ApplicationDisplayName`tAccountDisplayName"
# Loop over all applications
foreach ($app in $apps)
  {
    $Accounts = $app.Accounts
# Loop over all Accounts
    foreach ($account in $Accounts)
      {
# Display only the information we are interested in.
        Write-output "$($app.DisplayName)`t$($account.AccountDisplayName)"
      }
  } 

Example output.

ApplicationDisplayNameAccountDisplayName
AppCenterVANSOEST\JohnL
AppCenterVANSOEST\GeorgeH
AppCenterVANSOEST\PaulM
AppCenterVANSOEST\johanvs
AppCenterVANSOEST\Domain Admins
Citrix Client Printer SelectionVANSOEST\Domain Users
CMDVANSOEST\johanvs
CMDVANSOEST\PaulM
CMDVANSOEST\Domain Admins
CMDVANSOEST\JohnL
Default Printer SelectionVANSOEST\Domain Users
Internet ExplorerVANSOEST\johanvs
Internet ExplorerVANSOEST\Domain Users
Microsoft Excel 2013VANSOEST\johanvs
Microsoft Excel 2013VANSOEST\Domain Users
Microsoft Powerpoint 2013VANSOEST\johanvs
Microsoft Powerpoint 2013VANSOEST\Domain Users
Microsoft Word 2013VANSOEST\johanvs
Microsoft Word 2013VANSOEST\Domain Users
PaintVANSOEST\johanvs
PaintVANSOEST\Domain Users

Microsoft Office Excel 2013 Auto Filter example.

Microsoft Office Excel 2013 Auto Filter example.

Microsoft Office Excel 2013 PivotTable example.

Microsoft Office Excel 2013 PivotTable example.
You may vote your opinion about this article:


Topic created  :  01-05-2017
Topic last edited  :  01-05-2017

Scripts and programming examples disclaimer

Unless stated otherwise, the script sources and programming examples provided are copyrighted freeware. You may modify them, as long as a reference to the original code and hyperlink to the source page is included in the modified code and documentation. However, it is not allowed to publish (copies of) scripts and programming examples on your own site, blog, vlog, or distribute them on paper or any other medium, without prior written consent.
Many of the techniques used in these scripts, including but not limited to modifying the registry or system files and settings, impose a risk of rendering the Operating System inoperable and loss of data. Make sure you have verified full backups and the associated restore software available before running any script or programming example. Use these scripts and programming examples entirely at your own risk. All liability claims against the author in relation to material or non-material losses caused by the use, misuse or non-use of the information provided, or the use of incorrect or incomplete information, are excluded. All content is subject to change and provided without obligation.
Generated by WebHalla™ Version 0.1.e.2 : Tuesday 22-1-2019 © Copyright 1995-2019 Johan van Soest
Response Form    Cookie- and Privacy statement
Weather in Waalre by OpenWeatherMap logo mist
Temperature -3.76 °C mist
Humidity 85 % mist
Air pressure 1017 hPa mist
Wind speed 2.1 m/s mist
Wind direction South South mist