Export (0) Print
Expand All
Expand Minimize

Restart-WAPackVM

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Restart-WAPackVM

Restarts virtual machines.

Syntax

Parameter Set: FromVirtualMachineObject
Restart-WAPackVM [-VM] <VirtualMachine> [[-PassThru]] [ <CommonParameters>]




Detailed Description

The Restart-WAPackVM cmdlet restarts virtual machines.

Parameters

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VM<VirtualMachine>

Specifies a virtual machine. To obtain a virtual machine, use the Get-WAPackVM cmdlet.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Restart a virtual machine

The first command gets the virtual machine named ContosoV126 by using the Get-WAPackVM cmdlet, and then stores that object in the $VirtualMachine variable.

The second command restarts the virtual machine stored in $VirtualMachine.


PS C:\> $VirtualMachine = Get-WAPackVM -Name "ContosoV126"PS C:\> Restart-WAPackVM -VM $VirtualMachine

Related topics

Show:
© 2014 Microsoft