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 →
This Citrix Hypervisor PowerShell script restarts a Citrix Hypervisor host and waits for the host to be in the running state before continuing by waiting until the Netlogon service on the VM is running.
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 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 →
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 →
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. First, make sure we load the Citrix PowerShell modules. Next, we need to gather information about the XenDesktop infrastructure. We need... Continue Reading →
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 →
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 →