PowerCLI Reference

Set-VMHostDiagnosticPartition

Synopsis

This cmdlet activates or deactivates the diagnostic partitions of hosts.

Syntax

Set-VMHostDiagnosticPartition [-Active] <Boolean> [-VMHostDiagnosticPartition] <VMHostDiagnosticPartition[]> [-WhatIf] [-Confirm] [<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.