vSphere PowerCLI Reference

Set-VMHostDiagnosticPartition

Synopsis

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

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[]Specify 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$true
WhatIfSwitchParameterIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

VMHostDiagnosticPartition

Notes

Examples

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

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

Deactivates the active diagnostic partition of the specified host.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.