## PowerCLI Reference

# Get-VMHostDiagnosticPartition

## Synopsis

This cmdlet retrieves a list of the diagnostic partitions on the specified hosts.

Syntax

Get-VMHostDiagnosticPartition [-VMHost] <VMHost[]> [-All] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-VMHostDiagnosticPartition

Detailed Description

This cmdlet retrieves a list of the diagnostic partitions on the specified hosts. The list is ordered by the partitions preference. Local diagnostic partitions are more preferable than shared diagnostic partitions because multiple servers cannot share the same partition. The most preferred diagnostic partition is first in the list.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VMHost | VMHost[] | Specifies the hosts for which you want to retrieve diagnostic partitions. | true | true (ByValue)
All | SwitchParameter | Indicates that you want to retrieve all diagnostic partitions on the specified hosts. By default, only the active partitions are retrieved. | false | false
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false

Return Type

Zero or more VMHostDiagnosticPartition objects

Notes

Examples

-------------- Example 1 --------------

    Get-VMHost 192.168.1.10 | Get-VMHostDiagnosticPartition -All

Retrieves all diagnostic partitions for the specified host.

Copyright © VMware, Inc. All rights reserved.