VMware Cloud Community
eyalicohen
Contributor
Contributor

script changecore per Soket and memory

Hello friends

I have a number of servers 63

I have to change their number of core per Soket and memory

Does anyone have a script that can take your server list and settings I want to change?

thanks very much!!!

1 Reply
LucD
Leadership
Leadership

Are the #cores per socket and memory the same for each of the VMs?

Then you could do

$cores = 4

$memory = 8

Get-VM | set-VM -CoresPerSocket $cores -MemoryGB $memory -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference