Export (0) Print
Expand All

Get-WBVirtualMachine

Updated: June 3, 2013

Applies To: Windows Server 2012

Get-WBVirtualMachine

Gets all virtual machines and components from the backup policy.

Syntax

Parameter Set: Policy
Get-WBVirtualMachine [[-Policy] <WBPolicy> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Get-WBVirtualMachine cmdlet gets all virtual machines and Microsoft® Hyper-V® Server 2012 components from the WBPolicy object or the physical machine.

Parameters

-Policy<WBPolicy>

Specifies the backup policy information contained in the WBPolicy object to display.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

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

  • Windows.ServerBackup.Commands.WBPolicy

Outputs

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

  • Windows.ServerBackup.Commands.WBVirtualMachine[]

Examples

Example 1:

This command queries for virtual machines and Hyper-V Server 2012 components on the machine and lists them.


PS C:\> Get-WBVirtualMachines

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft