共用方式為


Get-DPMVMwareInventory

Get-DPMVMwareInventory

Gets VMware infrastructure.

Syntax

Parameter Set: ProductionServer
Get-DPMVMwareInventory [-ProductionServer] <ProductionServer> [-Async] [-Inquire] [-Tag <Object> ] [ <CommonParameters>]

Detailed Description

The Get-DPMVMwareInventory cmdlet gets information about VMware folders and related infrastructure.

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Inquire

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProductionServer<ProductionServer>

Specifies the production server on which the ESX host is running.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true(ByValue,ByPropertyName)

Accept Wildcard Characters?

false

-Tag<Object>

Specifies a custom property that distinguishes the replies to each asynchronous call. You can use this parameter if you build a graphical user interface by using cmdlets. Do not use this parameter if you work with the DPM Management Shell.

Aliases

none

Required?

false

Position?

named

Default Value

none

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 (https://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.

  • VMWareRecoveryInfra

    This cmdlet returns a VMWareRecoveryInfra object with the following tree hierarchy:

    VMWareRecoveryInfra
    {
    RootFolder
    ComputeResources[]
    }
    Folder
    {
    Childfolders[]
    }
    ComputerResource
    {
    Datastores[]
    RootResourcePool
    }
    ResourcePool
    {
    Childresourcepools[]
    }

Examples

Example 1: Get VMware infrastructure

The first command gets the ESX host that is protected by DPM.

The second command gets inventory information for the ESX host, such as the root folder and compute resources.

PS C:\> $PS = Get-DPMProductionServer -DPMServerName "vmwarebkp.dpmdom02.selfhost.corp.microsoft.com"
PS C:\> Get-DPMVMwareInventory -ProductionServer $PS[2]

Get-DPMProductionServer