CmdID

CmdID / PowerShell / Cmdlets / Restart

Restart-VM

Restarts a virtual machine. Windows Server PowerShell reference

From the Windows Server PowerShell reference 14 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

14 in the Windows Server PowerShell reference
-AsJobRuns the cmdlet as a background job.
-CimSessionRuns the cmdlet in a remote session or on a remote computer.
-ComputerNameSpecifies one or more Hyper-V hosts on which the virtual machine is to be restarted.
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-CredentialSpecifies one or more user accounts that have permission to perform this action.
-Delay
-For
-ForceSpecifies that no prompt for confirmation is to appear before the virtual machine is restarted.
-Name, -VMNameSpecifies the name of the virtual machine to be restarted.
-PassthruSpecifies that an object is to be passed through to the pipeline representing the virtual machine to be restarted.
-Timeout, -TimeoutSecSpecifies the duration of the wait, in seconds.
-VMSpecifies the virtual machine to be restarted.
-WaitRestart-VM suppresses the PowerShell prompt and blocks the pipeline until the virtual machine has restarted.
-WhatIf, -wiShows what would happen if the cmdlet runs.