Enable-SoftUserMailbox
SYNOPSIS
Enable a cloud mailbox for a soft user in Active Directory.
SYNTAX
DESCRIPTION
The `Enable-SoftUserMailbox` function enables a cloud mailbox for a soft user in Active Directory. It verifies that the user is marked as a soft user (based on the `extensionAttribute6` property) and is not already mail-enabled. The function then creates a remote mailbox with a specific routing address and logs the action with a task number.
EXAMPLES
EXAMPLE 1
Enable-SoftUserMailbox -User "[email protected]" -TaskNr 12345
Enables a cloud mailbox for the user `user@example.com` and logs the action with task number 12345.
PARAMETERS
-User
The identity of the user (e.g., DistinguishedName, UserPrincipalName, or sAMAccountName) for whom the cloud mailbox will be enabled.
Type: String
Parameter Sets: (All)
Aliases: DN, DistinguishedName, userprincipalname, samAccountName, Identity
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-TaskNr
The task number associated with the action, used for logging purposes.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.