PowerShell Logo Small

Remove-VM



This is the built-in help made by Microsoft for the command 'Remove-VM', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Deletes a virtual machine.

SYNTAX


Remove-VM [-Name] <String[]> [-AsJob] [-ComputerName <String[]>] [-Force] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-VM [-VM] <VirtualMachine[]> [-AsJob] [-Force] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-VM cmdlet deletes a virtual machine. Running this cmdlet deletes the virtual machine’s configuration file, but does not delete any
virtual hard drives. If the virtual machine has any snapshots, these are deleted and merged into the virtual hard disk files after the virtual
machine is deleted.



<

RELATED LINKS






REMARKS

<
Removes with no confirmation prompt all virtual machines having names starting with New.