Get-WBVirtualMachine

Gets all virtual machines and components from the backup policy.

Syntax

Get-WBVirtualMachine
   [[-Policy] <WBPolicy>]
   [-Confirm]
   [-WhatIf]

Description

The Get-WBVirtualMachine cmdlet gets all virtual machines and hv_win8_1 components from the WBPolicy object or the physical machine.

Examples

Example 1:

PS C:\> Get-WBVirtualMachines

This command queries for virtual machines and hv_win8_2 components on the machine and lists them.

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Policy

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

Type:WBPolicy
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Windows.ServerBackup.Commands.WBPolicy

Outputs

Windows.ServerBackup.Commands.WBVirtualMachine[]