XenApp 6.5 – Powershell Command Line

XenApp 6.5 – Powershell Command Line

XenApp 6.5 – Powershell Command Line

This post has already been read 10483 times!

Was browsing the web today and came across these useful XenApp commands that you can run from powershell.  Its not a complete listing and its not here to solve all your XenApp problems, but, uit is good to have in the bank in case the boss asks for some proof on your XenApp technical ability…



Powershell - is it the bomb...

Powershell – is it the bomb…

Get the list of Users currently using a published XenApp Application:

Get-XASession -BrowserName notepad | select AccountName

Get the computer(or client) name from where a XenApp Application is launched

Get-XASession -BrowerName notepad | select ClientName, AccountName

Logoff a user(user1) session who opened “MS Word” application in XenApp:

(Get-XASession -BrowserName “MS Word” -ServerName XenAPP1 | ? {$_.AccountName -match “User1″ }).SessionID | Stop-XASession

Get all published XenApp applications on a Server

Get-XAApplication -ServerName XenApp1 | select DisplayName

Get all Desktops published in XenApp environment

Get-XAApplication | ? {$_.ApplicationType -eq “ServerDesktop” } | select DisplayName

Get the users or groups who has permission to a published application:

Get-XAAccount -BrowserName App1

How to get the list of processes running in a given XenApp session on server:

Get-XASessionProecss -ServerName XenApp1 -Sessionid 10

 Rename a published XenApp Application (or change displayname of XenApp Application):

Get-XAApplication -BrowserName “My Notepad” | Rename-XAApplication -NewDisplayName “My Notepad – OLD”

Change the description of a XenApp application:

Get-XAApplication -BrowserName “My Notepad – OLD” | Set-XAApplication -Description “This is going to retire”

Leave a Reply

Your email address will not be published. Required fields are marked *