Change XenApp 6.5 edition via PowerShell

Written by Ingmar Verheij on March 5th, 2012. Posted in PowerShell

If you wanted to change the product edition (Advanced / Enterprise / Platinum) of a Citrix XenApp (4, 5 of 6.0) server this was done per server. How you can change the product edition is explained in this article on Citrix Blogs. In Citrix XenApp 6.0 this was done either via the console of via a PowerShell cmdlet called Set-XAServerEdition.  Since the product edition in XenApp 6.5 is no longer set  per server (but via a Policy) this cmdlet is removed.

Remote desktop to XenServer VM via PowerShell

Written by Ingmar Verheij on February 14th, 2012. Posted in PowerShell, XenServer

Recently I wrote a PowerShell script that connects to the console of a virtual machine on a Citrix XenServer, without using XenCenter or the Web Self Service portal. This allowed me to offer a published application to my users so they can connect to the console session. But what if they want to connect via a Remote Desktop Connection (RDP)?

I’ve written a PowerShell script that looks up the IP address of the VM and connects via RDP.

Connect to VM without XenCenter

Written by Ingmar Verheij on February 2nd, 2012. Posted in PowerShell, XenServer

Author: Ingmar Verheij

If you want to connect to the console of a virtual machine running on Citrix XenServer you either need XenCenter or the Web Self Service portal.

I created a PowerShell script that connects to the console of the virtual machine, without the use of both. This script can be used to offer a shortcut to a virtual machine without requiring the user to have XenCenter installed, or having a XenServer Enterprise or Platinum license (it works with the free license).

Reverse and forward engineering databases in Visual Studio 2010

Written by Ingmar Verheij on January 5th, 2012. Posted in Visual Studio

In a previous post I’ve described how you can reverse and forward engineer a database from a Microsoft SQL server to (and from Microsoft Office Visio 2010. But what if you’re using Typed Datasets in Microsoft Visual Studio?

Same as with Visio, reverse engineering an existing database from a SQL database is built-in and therefore fairly easy. So a best-practice is to design the database model in Visio, forward engineer it to a SQL database and import it in Visual Studio.

If you want to forward engineer a Microsoft ADO.NET compatible DataSet Schema File (XSD) to a (Microsoft SQL) database you can use the XSD2DB tool created by Alexsis Smirnov.

In this blog post I will demonstrate how to reverse engineer a database from Microsoft SQL server, and how to forward engineer a XSD back to a Microsoft SQL server.

Compute numeric values in arrays with System.Linq namespace

Written by Ingmar Verheij on June 15th, 2011. Posted in VB.Net

Mathematics

Microsoft .NET Framework can store values in an array which makes it easy to use in methods and properties. An array can contain any kind of object, but I most commonly use it to store numeric value.

A greate property of numeric values is that you can compute them to a different value, and use that value to derive conclusions of any kind (I might sound like a madman , but figures somehow interest me).

A simple example of computing numeric values is deriving the lowest number is a range of number or the average of all numbers. .NET has a method that can compute this easily for you, but it’s a bit hidden)

Let’s take the following range of numbers: 0,1, 2, 3, 4. The lowest number in this range is 0 and the average is 2 (0+1+2+3+4 / 5). That’s easy.

Donate