Home > XenApp cmdlets for Windows PowerShell
Step-by-Step Guide:
EMAIL THIS

XenApp cmdlets for Windows PowerShell

25 Aug 2009 | SearchVirtualDesktop.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

Citrix has chosen PowerShell as its scripting and development platform for XenApp. This has lead to the creation of the XenApp "cmdlets" and provide the administrator with a wealth of power. Follow these steps for installing and configuring cmdlets and learn the many ways these scripts can be used to simplify day-to-day administrative tasks.

Download

To set up PowerShell automation in three easy steps, follow the Step-by-Step Guide: PowerShell automation for Windows Server 2008. You should also be aware that XenApp cmdlets require XenApp 4.5 with Hotfix Rollup Pack 3 (HRP3) and above. This is because the .NET classes the cmdlets were built on are not available prior to HRP03.

XenApp cmdlets must also be installed on a XenApp server. Citrix made a conscience decision to rely on PowerShell remoting. This was primarily a performance and quality control decision.

The XenApp cmdlets are still in CTP so you will need to have a MyCitrix account. This account is free and you can sign up while following the download link.

Install

After you download MSI the install is as simple as a double click. This will start the installer. Step through the wizard and it will register the snap-in, as well as create the shortcut (Figure 1).

[IMAGE]
Figure 1 Creating a shortcut. (Click on image for enlarged view.)

Configure

By default, the snap-in is installed but the registered PowerShell does not load it. Therefore, you will need to take an extra step to make this happen. You have two options:

  1. Load the snap-in on demand: Add-PSSnapin Citrix.XenApp.Commands
  2. Add the above command to your profile.ps1 file so it is loaded every time.

Utilizing XenApp ...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Application virtualization and streaming
Working with Terminal Services RemoteApp
Bank steps up application virtualization with XenApp 5 SP2
Microsoft bundles App-V with Remote Desktop Services
Midyear review: Top 10 virtual desktop tips
Getting started with application streaming and virtualization
PowerShell automation for Windows Server 2008
Why changing application delivery is so hard
Microsoft and Citrix join forces against VMware for VDI
Image management with app virtualization and Group Policy
Choosing the right client computing technology

Virtual desktop management
Citrix CEO: Transition to on-demand services won't be pretty
What's new with virtual desktop infrastructure?
How to protect virtual desktops on a corporate network
Symantec and Quest's desktop virtualization suites hit the big leagues
Moving from Presentation Server 4.5 to XenApp 5.0 Feature Pack 2
Top tools for securing a virtual desktop infrastructure
The top 5 ways that VDI can help improve your enterprise's security
Will Windows 7 fuel desktop virtualization adoption?
Rejoice! Citrix modifies its XenDesktop license plans
Manage Remote Desktop Services with Windows PowerShell

Tools and Technologies
Installing VMware View components
How to configure Wyse terminals without console interaction
Dazzle brightens Citrix flexibility story
VMware vs. Citrix virtual desktops -- what's the better deal?
VMware View 4: An improvement to View 3, but still a ways to go
VMware revs up performance on virtual desktops
Symantec and Quest's desktop virtualization suites hit the big leagues
Moving from Presentation Server 4.5 to XenApp 5.0 Feature Pack 2
Top tools for securing a virtual desktop infrastructure
Rejoice! Citrix modifies its XenDesktop license plans

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
continuous media  (SearchVirtualDesktop.com)
Real Time Streaming Protocol (RTSP)  (SearchVirtualDesktop.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


cmdlets

Getting the farm
Getting the farm information is done with two different cmdlets. The first cmdlet is Get-XAFarm (Figure 2) and is used for getting the farm object which provides general information about the farm. The second cmdlet is Get-XAFarmConfiguration (Figure 3) which is used to get the farm configuration information.

[IMAGE]
Figure 2 Get-XAFarm. (Click on image for enlarged view.)

[IMAGE]
Figure 3 Get-XAFarmConfiguration. (Click on image for enlarged view.)

Getting applications
To get application information, use Get-XAApplication (Figure 4). To list the application configuration information, including users and groups, use the cmdlet Get-XAApplicationReport (Figure 5).

[IMAGE]
Figure 4 Get-XAApplication. (Click on image for enlarged view.)

[IMAGE]
Figure 5 Get-XAApplicationReport. (Click on image for enlarged view.)

Getting XenApp server information
There are two cmdlets for getting server information. Get-XAServer (Figure 6) is used for getting basic information about the server. Get-XAServerConfiguration (Figure 7) gives detailed information about the XenApp Server.

[IMAGE]
Figure 6 Get-XAServer. (Click on image for enlarged view.)

[IMAGE]
Figure 7 Get-XAServerConfiguration. (Click on image for enlarged view.)

Now that the XenApp cmdlets are downloaded, installed and configured you are ready to get started using these cmdlets to manage your farm and make your day-to-day adminstrative life easier.

ABOUT THE AUTHOR:   

[IMAGE]Brandon Shell
Brandon has been in the IT industry since 1994. He started out as a PC tech and general fix-it guy for numerous companies. In 2000, he joined Microsoft as contractor for the Directory Services team (the first of several times) until he became a full-time employee in 2002. In 2004, he left Microsoft to pursue a new position focusing on his real passion, PowerShell. In 2007 he joined the PowerShell MVP ranks and spent the last several years building his PowerShell knowledge and helping others build theirs.




About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts