PowerCLI Reference

Set-WMNamespace

Synopsis

This cmdlet modifies the configuration of a workload namespace.

Syntax

Set-WMNamespace [-Namespace] <WMNamespace[]> [-Description <String>] [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet modifies the configuration of a workload namespace. The cmdlet requires a connection to a vCenter Server using the Connect-VIServer cmdlet.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NamespaceWMNamespace[]Specifies the set of namespaces on which you want to to apply the change of the configuration.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
DescriptionStringSpecifies the new value of the description for the specified workload namespace.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.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

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespace

Notes

Examples

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

PS C:\> Set-WMNamespace "MyNamespace" -Description "The new description text"

Sets the description of the workload namespace "MyNamespace" to "The new description text".

-------------------------- Example 2 --------------------------

PS C:\> Get-WMNamespace "Target*" | Set-WMNamespace -Description "The new description text"

Sets the description of all workload namespaces that have a name matching the "Target*" pattern to "The new description text".

-------------------------- Example 3 --------------------------

PS C:\> Set-WMNamespace "MyNamespace" -Description ""

Sets the description of the workload namespace "MyNamespace" to be blank.


Copyright © VMware, Inc. All rights reserved.