June 5th, 2013

PowerTip: Use PowerShell to Add Processors to Virtual Machine

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to add processors to a virtual machine running on Hyper-V.

Hey, Scripting Guy! Question How can I easily add processors to my virtual machine?

Hey, Scripting Guy! Answer Use the Set-VMProcessor cmdlet:

    SET-VMProcessor -VMname “My Virtual Machine” -count 2   

This enables the virtual machine called “My Virtual Machine” with two (2) CPUs (presuming the computer is already shut down and you have two processors to work with).

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.