Modify disk classifications in Virtual Machine Manager (VMM) using PowerShell


Do you need to modify large number of disk classifications in System Center Virtual Machine Manager (SCVMM)? It is very simple in PowerShell.

Get-SCVMHost -VMMServer MyVMMserver -ComputerName MyHyperV -OutVariable vmHost |
    Format-Table -Property FQDN, ProcessorModel

$storageClassification = Get-SCStorageClassification -Name 'My disk class'
Get-SCStorageDisk -VMHost $vmHost[0] -OutVariable hostDisk | Format-Table -Property Name, Classification
$hostDisk | Set-SCStorageDisk -StorageClassification $storageClassification | Format-Table -Property Name, Classification

Leave a Reply

Your email address will not be published. Required fields are marked *

Active Directory Advanced function AlwaysOn Availability Groups AlwaysOn Failover Cluster Instances Building Cloud Cloud Cluster Cmdlet Database Deployment Design DFS Domain Controller DSC Fabric Failover Clustering File Server Group Policy Hardware Profile Host Hyper-V Installation Library Library Asset Library Server Network Operations Manager Orchestrator PowerShell PowerShell User Group PowerShell Workflow Security Service Manager SQL Server Storage System Center Template Time Time Synchronization Tips Virtual Machine Virtual Machine Manager VM Network VM Template Windows Server 2012 R2