Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WBVirtualMachine

Last Updated: 4/3/2017

SYNOPSIS

Gets all virtual machines and components from the backup policy.

SYNTAX

Default (Default)

Get-WBVirtualMachine [-WhatIf] [-Confirm] [<CommonParameters>]

Policy

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

DESCRIPTION

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

EXAMPLES

Example 1: Get all virtual machines and components from the backup policy

PS C:\> Get-WBVirtualMachines

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

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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
Parameter Sets: Policy
Aliases: 

Required: False
Position: 0
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
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

Windows.ServerBackup.Commands.WBPolicy

OUTPUTS

Windows.ServerBackup.Commands.WBVirtualMachine[]

NOTES

Add-WBVirtualMachine

Remove-WBVirtualMachine

© 2017 Microsoft