Export (0) Print
Expand All
Expand Minimize

Get-WAPackVM

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

Get-WAPackVM

Gets virtual machine objects.

Syntax

Parameter Set: FromId
Get-WAPackVM [[-ID] <Guid> ] [ <CommonParameters>]

Parameter Set: FromName
Get-WAPackVM [[-Name] <String> ] [ <CommonParameters>]




Detailed Description

The Get-WAPackVM cmdlet gets virtual machine objects.

Parameters

-ID<Guid>

Specifies the unique ID of a virtual machine.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a virtual machine.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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: Get a virtual machine by using a name

This command gets the virtual machine named ContosoV126.


PS C:\> Get-WAPackVM -Name "ContosoV126"

Example 2: Get a virtual machine by using an ID

This command gets the virtual machine that has the specified ID.


PS C:\> Get-WAPackVM -Id 66242D17-189F-480D-87CF-8E1D749998C8

Example 3: Get all virtual machines

This command gets all virtual machines.


PS C:\> Get-WAPackVM

Related topics

Show:
© 2014 Microsoft