PowerTip: Find Information about Started Virtual Machine


Summary: Use Windows PowerShell to find detailed information about a started virtual machine.

Hey, Scripting Guy! Question I use the Start-VM cmdlet on my computer running Hyper-V, but how can I use Windows PowerShell
           to find more information about the virtual machine that actually starts?

Hey, Scripting Guy! Answer Use the –PassThru parameter to return a virtual machine information object. Store the returned
           object in a variable, and then use Windows PowerShell to parse that variable. Here is an example:

$vm = Start-VM –name c1 –passthru
$vm

Comments (1)

Skip to main content