Get-VM on Hyper-V Server

Get Virtual Machine List on Hyper-V Server;
Get-VM

Get Running Virtual Machines on Specific Hyper-V host;
Get-VM
-ComputerName Server1 | Where-Object {$_.State -eq ‘Running’}

Get All Virtual Macine List on Hyper-V Failover Cluster Structure;
Get-ClusterGroup
| ? {$_.GroupType -eq ‘VirtualMachine’ } | Get-VM

If you want to write to text file your output;
Get-ClusterGroup | ? {$_.GroupType -eq ‘VirtualMachine’ } | Get-VM | Out-File c:\vmlist.txt

Bu yazı Genel içinde yayınlandı. Kalıcı bağlantıyı yer imlerinize ekleyin.

Yorum bırakın

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.