Set-VMHostDiagnosticPartition

This cmdlet activates or deactivates the diagnostic partitions of hosts.

Syntax

[-VMHostDiagnosticPartition]  <VMHostDiagnosticPartition[]>
-Active  <Boolean>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHostDiagnosticPartition
VMHostDiagnosticPartition[] 1
  • pipeline
  • Specifies the host diagnostic partition you want to set.
    required
    Active
    Boolean named If the value of this parameter is $true, the partition state is changed to active. If the value is $false, the partition state is set to inactive.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.VMHostDiagnosticPartition

    Examples


    Example 1

    $diagPartition = Get-VMHostDiagnosticPartition -VMHost $vmhost
    $diagPartition | Set-VMHostDiagnosticPartition -Active $false -Confirm

    Deactivates the active diagnostic partition of the specified host.

    Related Commands

    Feedback

    Was this page helpful?