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:
1 |
Get-VM | Set-VMProcessor -CompatibilityForMigrationEnabled $true |
And to disable it (for whatever reason):
1 |
Get-VM | Set-VMProcessor -CompatibilityForMigrationEnabled $false |
This is something that came up at a workshop I’ve attended this week… very handy!
Cool, however, you could pipe directly to Set-VMProcessor
Get-VM | Set-VMProcessor -CompatibilityForMigrationEnabled $true
Whoops… you’re so right….
Changed the code in the post. Thanks Shay! 🙂