Syntax
Set-Org [-Org] <Org[]> [-Name <String>] [-FullName <String>] [-Description <String>] [-Enabled <Boolean>] [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet modifies the configuration of the specified organization.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Org | Org[] | Specifies the organization that you want to configure. | 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 | |
Description | String | Specifies a description for the organization you want to modify. | false | false | |
Enabled | Boolean | Specifies whether you want to enable or disable the organization. Note: This parameter is only available to Provider Administrators. | false | false | |
FullName | String | Specifies a new full name for the organization. | false | false | |
InformationAction | ActionPreference | false | false | ||
InformationVariable | String | false | false | ||
Name | String | Specifies a new unique name identifier for the organization. To set a new unique name identifier for organizations in a vCloud Director 5.1 environment, you need to disable the organization first.
Note: This parameter is only available to Provider Administrators. | false | false | |
PipelineVariable | String | false | false | ||
Server | CIServer[] | Specifies the cloud servers 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 Connect-CIServer. | 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 Organization objectsNotes
Examples
-------------- Example 1 --------------
Get-Org -Name "MyOrg" | Set-Org -Enabled:$false | Set-Org -Name "MyOrgNewName" -FullName "MyOrgFullName2" -Description "Update my Org"
Disables an organization and modifies its unique name identifier, its full name and its description.
-------------- Example 2 --------------
Get-Org -Name 'MyOrg' | Set-Org -FullName 'MyNewOrgFullName' -Description "This is my updated organization."
Updates the full name and the description of the specified organization.
Note: This example is supported only on vCloud Director 1.5.x environments.