Muokkaa

Jaa


Set-MsolAdministrativeUnit

Updates the properties of an administrative unit.

Syntax

Set-MsolAdministrativeUnit
   [-ObjectId <Guid>]
   [-DisplayName <String>]
   [-Description <String>]
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Set-MsolAdministrativeUnit cmdlet updates the properties of an administrative unit.

Examples

Example 1: Modify a description of an administrative unit

PS C:\> $AdministrativeUnit = Get-MsolAdministrativeUnit -SearchString "West Coast"
PS C:\> Set-MsolAdministrativeUnit -Description "West Coast region" -ObjectID $AdministrativeUnit.ObjectId

The first command gets an administrative unit that matches a search string by using the Get-MsolAdministrativeUnit cmdlet. The command stores the administrative unit in the $AdministrativeUnit variable.

The second command assigns the description value of West Coast region. The command specifies the administrative unit by using the object ID of $AdministrativeUnit.

Parameters

-Description

Specifies a description for the administrative unit.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DisplayName

Specifies a display name for the administrative unit.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

Specifies the unique ID of the administrative unit to update.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False