Testing Virtualization-Clusters

Tests the existence of the specified Virtualization-Cluster object(s). Returns true, if the Virtualization-Cluster exists and false if it doesn't.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


The following example tests, if the Virtualization-Cluster "XenFarm01" in "Managed Virtual Environments\XenFarms" exists:


Test-EmdbVirtualizationCluster "emdb:\rootDSE\Managed Virtual Environments\XenFarms\XenFarm01"


In the next command, we check, if there are any Virtualization-Cluster objects in the Organizational Unit "XenFarms" below "Managed Virtual Environments":


Test-EmdbVirtualizationCluster "emdb:\rootDSE\Managed Virtual Environments\XenFarms"


The following code snippet first changes the working directory to the "XenFarms" Organizational Unit under "Managed Virtual Environments" and then tests, if a Virtualization-Cluster named "XenFarmNG" exists underneath:


Cd "emdb:\rootDSE\Managed Virtual Environments\XenFarms"

Test-EmdbVirtualizationCluster "XenFarmNG" -Recurse