melove51's Posts

That was it man. I had to update it a little, but that was it:  foreach($vm in Get-VM -Name (Get-Content .\servers.txt)
Oh man, getting so close. For some reason it's powering off random servers. Can I do something like this and pull from a text file:  foreach($vm in C:\Powercli_scripts\servers.txt) Or in t... See more...
Oh man, getting so close. For some reason it's powering off random servers. Can I do something like this and pull from a text file:  foreach($vm in C:\Powercli_scripts\servers.txt) Or in the script:  PowerCLI C:\Powercli_scripts> .\Change-VM_Memory_CPU_Count.ps1 -vCenter vcenter.local -vmName "C:\Powercli_scripts\servers.txt" -MemoryMB 4096 -MemoryOption Remove -CPUCount 3 -CPUOption Remove
I'm working on user powercli to modify the CPU and Memory of multiple VMs. I found the perfect script created:  http://ict-freak.nl/2010/05/07/powercli-script-to-schedule-memory-and-or-vcpu-updo... See more...
I'm working on user powercli to modify the CPU and Memory of multiple VMs. I found the perfect script created:  http://ict-freak.nl/2010/05/07/powercli-script-to-schedule-memory-and-or-vcpu-updowngrade/comment-page-1/#comment-20336 But it's only for 1 VM. Can anyone tell me to modify it so do multiple VMs.  A text file would be ideal, but i'm up for anything that this point, nothing I try is working. Thanks.