Life's random bits By b1thunt3r (aka Ishan Jain)…
Hyper-V PowerShell Commands

Hyper-V PowerShell Commands

Ishan jain
Quick commands to ease Hyper-V management.

A list of some PowerShell commands for quick Hyper-V management.

  • Start VM

    Start-VM VMName
    
  • Stop VM

    Stop-VM VMName
    
  • Save VM

    Save-VM VMName
    
  • Suspend (Pause) VM

    Suspend-VM VMName
    
  • Resume VM

    Resume-VM VMName
    
  • Get Network Adapter

    Get-VMNetworkAdapter -VMName VMName
    
  • Get IP Addresses

    (Get-VMNetworkAdapter -VMName VMName).IPAddresses[0]
    

Resources