Quantcast
Channel: Microsoft – JeffOps
Viewing all articles
Browse latest Browse all 120

PowerShell oneliner to configure Processor Compatibility on VMs in Hyper-V

$
0
0

Sometimes you need to configure the processor compatibility on virtual machines when you need to migrate them between servers that have different processor types (note: types, not brands!).
Here’s a simple oneliner that will configure the processor compatibility on all VM’s:

Get-VM | Set-VMProcessor -CompatibilityForMigrationEnabled $true

And to disable it (for whatever reason):

Get-VM | Set-VMProcessor -CompatibilityForMigrationEnabled $false

This is something that came up at a workshop I’ve attended this week… very handy!

Post to Twitter


Viewing all articles
Browse latest Browse all 120

Trending Articles