Skip to content

Set-MailboxQuota

SYNOPSIS

Set the quota for a mailbox.

SYNTAX

Set-MailboxQuota [-Gebruiker] <Object> [-Quota] <Object> [-TaskNr] <UInt32> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The `Set-MailboxQuota` function sets the quota for a mailbox to 95%/100%/105% of the specified value. It validates the input quota, ensures compatibility with the mailbox database, and applies the new quota settings. The function supports logging the action with a task number.

EXAMPLES

EXAMPLE 1

Set-MailboxQuota -Gebruiker "JohnDoe" -Quota 50GB -TaskNr 12345

Sets the quota for the mailbox of user `JohnDoe` to 50GB and logs the action with task number 12345.

EXAMPLE 2

Set-MailboxQuota -Gebruiker "JaneSmith" -Quota 100GB -TaskNr 67890

Sets the quota for the mailbox of user `JaneSmith` to 100GB and logs the action with task number 67890.

PARAMETERS

-Gebruiker

The name of the user whose mailbox quota will be updated.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Quota

The desired quota value.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TaskNr

The task number associated with the quota update, used for logging purposes.

Type: UInt32
Parameter Sets: (All)
Aliases: InfraNr

Required: True
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
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.

INPUTS

OUTPUTS

NOTES