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