Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 694 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 694 Bytes

Some useful hyper-v scripts

Last updated: 11.11.2022

Contents

deleteVM

Powershell script to delete a VM and its hard drives

Usage

ps> deleteVM.ps1 <vmName>

enable-hibernate

Powershell script to enable hibernation on a VM.

Usage

ps> enable-hibernate.ps1 <vmName> <enable>

enableHyperV

Batch script to enable or disable Hyper-V on a host system.

Usage

$ enableHyperV [/enable] [/disable] [/v] [/h]

Targets:

  • /enable Enable Hyper-V (default).
  • /disable Disable Hyper-V.

Options:

  • /v Verbose mode
  • /h Print this