search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Finding VMs with specific VLAN id in a Hyper-V Cluster via PowerShell
Posted in Windows Powershell, Windows Server | 1 Comment | 6,444 views | 19/07/2014 22:43

You can search VMs with specific VLAN id with following script:

1
2
3
4
5
$ClusterNodes = Get-Cluster | Get-ClusterNode
foreach ($ClusterNode in $ClusterNodes)
{
	Get-VM -ComputerName $ClusterNode | Where {$_.NetworkAdapters.VlanSetting.AccessVlanId -eq "173"}
}

That will give you VM list which has VLAN 173.


Comments (1)

Marc Wittmann

February 13th, 2018
13:15:30

Danke Yusuf – genau das hab ich gebraucht!

Schöne Grüße von der Operational Services ;)



Leave a Reply