Export (0) Print
Expand All

Get-WBVirtualMachine

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 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 (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.

  • 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 components on the machine and lists them.


PS C:\> Get-WBVirtualMachines

Community Additions

ADD
Show:
© 2016 Microsoft