Testing Virtualization-Management Server

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


Examples:


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


In the most trivial example, you can test through calling Test-EmdbVirtualizationManagementServer with Recurse-switch, if at least one Virtualization-Management Server exists in your environment:


Cd "emdb:\rootDSE\Managed Virtual Environments"

Test-EmdbVirtualizationManagementServer -Recurse


If you want to test the existence of a dedicated Virtualization-Management Server, you provide - as usual - path and name:


Test-EmdbVirtualizationManagementServer "emdb:\rootDSE\Managed Virtual Environments\MSVMMSRV01"


Obviously you can also use wildcards, if you only know a part of the server's name or if you want to just check for any server with this partially name:


Test-EmdbVirtualizationManagementServer "emdb:\rootDSE\Managed Virtual Environments\MSVMMSRV*" -Recurse