PowerCLI Reference

Set-VMHostDiagnosticPartition

Synopsis

This cmdlet activates or deactivates the diagnostic partitions of hosts.

Syntax

Set-VMHostDiagnosticPartition [-Active] <Boolean> [-VMHostDiagnosticPartition] <VMHostDiagnosticPartition[]> [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostDiagnosticPartition

Detailed Description

This cmdlet activates or deactivates the diagnostic partitions of hosts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ActiveBooleanIf 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.trueFalse
VMHostDiagnosticPartitionVMHostDiagnosticPartition[]Specifies the host diagnostic partition you want to set.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified VMHostDiagnosticPartition objects

Notes

Examples

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

$diagPartition = Get-VMHostDiagnosticPartition -VMHost $vmhost

$diagPartition | Set-VMHostDiagnosticPartition -Active $false -Confirm

Deactivates the active diagnostic partition of the specified host.


Copyright © VMware, Inc. All rights reserved.