-
Notifications
You must be signed in to change notification settings - Fork 0
Set BapTenantDetail
Sets the details for a specific tenant.
Set-BapTenantDetail [-Id] <String> [-Upn] <String> [-TenantId] <String> [[-TenantName] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
This function allows you to set the details for a specific tenant, including the user principal name (UPN), tenant ID, and tenant name.
It enables you to switch between different tenants easily.
Set-BapTenantDetail -Id "Contoso" -Upn "user@contoso.com" -TenantId "12345678-1234-1234-1234-123456789012" -TenantName "ContosoUnlimited"
This will set the details for the tenant with the id "Contoso". It will associate the UPN "user@contoso.com" with the tenant. It will also set the tenant ID to "12345678-1234-1234-1234-123456789012" and the friendly name to "ContosoUnlimited".
$detailsHash = Get-BapTenant -TenantId "12345678-1234-1234-1234-123456789012" -AsHashTable
PS C:\> Set-BapTenantDetail -Id "Contoso" @detailsHash
This will retrieve the tenant with the specified tenant ID. It will then set the details for the tenant with the id "Contoso" using the retrieved UPN and tenant ID.
The id of the registered tenant.
Used to have user defined name for tenants.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe user principal name (UPN) of the tenant.
Type: String
Parameter Sets: (All)
Aliases: Username, User, Login
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe unique identifier for the tenant.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe friendly name of the tenant.
Type: String
Parameter Sets: (All)
Aliases: FriendlyName
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)