Book Image

Getting Started with Citrix XenApp 6.5

Book Image

Getting Started with Citrix XenApp 6.5

Overview of this book

XenApp is the leader in application hosting and virtualization delivery, allowing users from different platforms such Windows, Mac, Linux, and mobile devices to connect to their business applications. Using XenApp, you can deploy secure applications quickly to thousands of users.XenApp 6.5 brings with it exciting new features such as a brand new management console, Instant App access, Multi-stream ICA, Single Sign-on and SmartAuditor enhancements, and more.Getting Started with Citrix XenApp 6.5 provides comprehensive details on how to design, implement, and maintain Citrix farms based on XenApp 6.5. Additionally, you will learn to use management tools and scripts for daily tasks such as managing servers, published resources, printers, and connections.Getting Started with Citrix XenApp 6.5 starts by introducing the basics and new features of the brand new version such as installing servers and configuring components, and then teaches you how to publish applications and resources on the client device before moving on to configuring content redirection. Author Guillermo Musumeci includes a use case throughout the book to explain advanced topics like creating management scripts and deploying and optimizing XenApp for Citrix XenServer, VMware ESX, and Microsoft Hyper-V virtual machines. It will guide you through an unattended installation of XenApp and components on physical servers. By the end of this book you will have enough knowledge to successfully design and manage your own XenApp 6.5 Farms.
Table of Contents (23 chapters)
Getting Started with Citrix XenApp 6.5
Credits
About the Author
Acknowledgement
About the Reviewers
Acknowledgement
www.PacktPub.com
Preface
Index

Using PowerShell Commands from .NET applications


Now we are going to learn how to develop simple .NET applications to call Citrix PowerShell cmdlets on both Visual Basic.NET (VB.NET) and C#.NET.

Requirement to develop applications:

  • Citrix XenApp 6.5 PowerShell SDK or Citrix XenApp Commands

  • Microsoft Visual C#.NET and/or Visual Basic.NET. Microsoft provides the Express Edition of Visual Studio.NET, Visual C#.NET, and Visual Basic.NET for free at www.microsoft.com/visualstudio

Creating a sample VB.NET application

Now we are going to create a sample application to list all XenApp servers in our XenApp farm using Citrix XenApp Commands with managed code.

The first step is to start VB.NET. Samples contained in this book are developed in Microsoft Visual Basic 2010 Express Edition.

Go to File | New Project | Windows Forms Application.

Enter the desired name for our project and click on the OK button.

Adding references

The next step is to add a reference to the System.Management.Automation.dll assembly...