1
我試圖列出所有hyper-V服務器及其虛擬機。列出Active Directory上服務器的所有虛擬機
現在我把我的這個查詢所有服務器:
var searcher = new DirectorySearcher(new DirectoryEntry("LDAP://" + domainName))
{
Filter = "(&(cn=Microsoft hyper-v)(objectCategory=serviceConnectionPoint))"
}
如何列出一個特定的服務器上運行的虛擬機?