LoginVSI PowerShell – Automate Tests


I have a PowerShell function that preps my lab and another executes a single LoginVSI test.  Now, I need to fully automate my LoginVSI testing to perform multiple tests without any interaction.  I need to do the following: Perform a test for each Master VM I specify For each Master VM, test specific workloads For… Continue reading LoginVSI PowerShell – Automate Tests

Citrix Hypervisor PowerShell – Reset VM


This XenServer PowerShell script resets a XenServer VM by doing the following: Shuts down the VM down and waits for the VM to power off Reverting to the “Baseline” snapshot (creates one if one not already created) Starts the VM Waits for VM to be in a running state, (waits until the VM’s Netlogon Windows… Continue reading Citrix Hypervisor PowerShell – Reset VM

LoginVSI PowerShell – New-CitrixVSITest


Being able to automate a LoginVSI test saves a lot of time, but there is more to testing than just the LoginVSI portion. We must remember to get the environment prepared for a LoginVSI test. For a Citrix XenApp and XenDesktop test, I always need to do the following: Prepare environment Remove the first VM… Continue reading LoginVSI PowerShell – New-CitrixVSITest

LoginVSI PowerShell – Invoke-VSITest


LoginVSI automates performance testing and I need to automate LoginVSI. By calling this one function, I can invoke a single LoginVSI test. At a high-level, the test does the following Prepare test These items simply get the environment ready for a LoginVSI test. It includes doing the following: Delete any old test files on the… Continue reading LoginVSI PowerShell – Invoke-VSITest

Pooled Desktops with Local Host Cache


Local host cache, within XenApp and XenDesktop, utilizes a local DB to store configuration information. This local DB is continuously updated by the master SQL DB. When connectivity to the SQL DB fails, the controller automatically switches to the local DB. When the link to the SQL DB is restored, the controller automatically switches back.… Continue reading Pooled Desktops with Local Host Cache

XenApp and XenDesktop PowerShell – Update MCS Image


If you need to automate the updating of a Machine Creation Services machine catalog, this script will be useful. It was created for a XenServer host. The first part is to setup my parameters. For the variables $StorageResource and $HostResource, you will use the names from Citrix Studio – Configuration – Hosting. I use “XenServer”… Continue reading XenApp and XenDesktop PowerShell – Update MCS Image

XenServer PowerShell: Capture Metrics


Sometimes, I need to capture CPU, RAM and disk metrics on my XenServer hosts.  I’ve been able to automate this process with PowerShell. Start-XSMetrics This script starts the metric gathering process on a XenServer host. The first block are the parameters. To make this work, I need to create a SSH session to the XenServer… Continue reading XenServer PowerShell: Capture Metrics

XenServer PowerShell – New Windows VM from ISO


I tend to build many Windows VMs on XenServer and want a way to automate as much as possible. I want to avoid using Sysprep.  I’m getting a Windows 10 ISO from Microsoft every 6 months (semi-annual release).  If I go with Sysprep, I have to manually create the VM, sysprep it, turn it into… Continue reading XenServer PowerShell – New Windows VM from ISO