-
List VMs on your SC VMM 2012
Wanna find out what VM is running on which server in your SCVMM cluster? This PowerShell script does it for you! (run it on the VMM server’s Virtual machine manager Command Shell) Get-SCVirtualMachine | Select-Object -property HostName, Name, Description | Sort-Object -Property HostName | Export-Csv .\vm-list.csv Here is another one which you can run to find which VMs are currently running. This is useful in case you want to shut all of them down using some script. Get-SCVirtualMachine | where {$_.StatusString -eq “Running”} | Select Name | Sort-Object -Property Name | Export-Csv .\vm-list.csv
-
Lost Citrix’s DB?
Here is what you can do if you totally lost Citrix’s data store (the database). From a command line on all presentation servers in the (ex) farm run : chfarm This will run a wizard which will let you choose and configure a new DB. You will lose all your Citrix configuration. This was useful to me when I was trying to recover a small 4-5 server Citrix 4.5 farm. It was used for development purposes, so recreating the couple of published apps was not too bad.