PowerShell Logo Small

Restart-VM



This is the built-in help made by Microsoft for the command 'Restart-VM', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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

Restarts a virtual machine.

SYNTAX


Restart-VM [-Name] <String[]> [-AsJob] [-ComputerName <String[]>] [-Force] [-Passthru] [<CommonParameters>]
Restart-VM [-VM] <VirtualMachine[]> [-AsJob] [-Force] [-Passthru] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Restart-VM cmdlet restarts a virtual machine. Running this cmdlet results in a “hard” restart, like powering the machine down, then back up again. This can result in
data loss in the virtual machine.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306931

REMARKS

<

Examples


Example 1

PS C:\>Restart-VM Win7
Confirm
Are you sure you want to restart virtual machine "win7"?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y



Performs a hard restart of virtual machine Win7. This is equivalent to turning off the power to the virtual machine and then restarting it.