Syntax
Set-VMHostDiagnosticPartition [-Active] <Boolean> [-VMHostDiagnosticPartition] <VMHostDiagnosticPartition[]> [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet activates or deactivates the diagnostic partitions of hosts.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Active | Boolean | 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. | true | false | |
VMHostDiagnosticPartition | VMHostDiagnosticPartition[] | Specifies the host diagnostic partition you want to set. | true | true (ByValue) | |
Confirm | SwitchParameter | If 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. | false | false | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Return Type
Zero or more modified VMHostDiagnosticPartition objectsNotes
Examples
-------------- Example 1 --------------
$diagPartition = Get-VMHostDiagnosticPartition -VMHost $vmhost $diagPartition | Set-VMHostDiagnosticPartition -Active $false -Confirm
Deactivates the active diagnostic partition of the specified host.