< Back

Set-MgaMailboxSetting

Sat Jan 18, 2020 4:43 pm

NAME Set-MgaMailboxSetting



SYNOPSIS

Set the mailbox settings from Exchange Online using the graph api.





SYNTAX

Set-MgaMailboxSetting [-InputObject <MailboxSettingParameter>] [-User <String>] [-Token <AzureAccessToken>]

[-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]



Set-MgaMailboxSetting [-AutomaticReply] [-User <String>] [-Token <AzureAccessToken>] [-PassThru] [-WhatIf]

[-Confirm] [<CommonParameters>]



Set-MgaMailboxSetting [-Language] [-User <String>] [-Token <AzureAccessToken>] [-PassThru] [-WhatIf] [-Confirm]

[<CommonParameters>]



Set-MgaMailboxSetting [-TimeZone] [-User <String>] [-Token <AzureAccessToken>] [-PassThru] [-WhatIf] [-Confirm]

[<CommonParameters>]



Set-MgaMailboxSetting [-WorkingHours] [-User <String>] [-Token <AzureAccessToken>] [-PassThru] [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

set the mailbox settings in Exchange Online using the graph api.

This includes settings for automatic replies (notify people automatically

upon receipt of their email), locale (language and country/region),

and time zone, and working hours.



You can parse in modified settings from Get-MgaMailboxSetting command.





PARAMETERS

-InputObject <MailboxSettingParameter>

Carrier object for Pipeline input. Accepts all the different setting objects

outputted by Get-MgaMailboxSetting.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AutomaticReply [<SwitchParameter>]

If specified, the command will set AutomaticReply settings



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Language [<SwitchParameter>]

If specified, the command will set Language settings



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-TimeZone [<SwitchParameter>]

If specified, the command will set TimeZone settings



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WorkingHours [<SwitchParameter>]

If specified, the command will set WorkingHour settings



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-User <String>

The user-account to access. Defaults to the main user connected as.

Can be any primary email name of any user the connected token has access to.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Token <AzureAccessToken>

The token representing an established connection to the Microsoft Graph Api.

Can be created by using New-MgaAccessToken.

Can be omitted if a connection has been registered using the -Register parameter on New-MgaAccessToken.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Outputs the mailbox settings to the console.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

If this switch is enabled, no actions are performed but informational messages will be displayed that explain

what would happen if the command were to run.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

If this switch is enabled, you will be prompted for confirmation before executing any operations that change

state.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





For addiontional information about Microsoft Graph API go to:

https://docs.microsoft.com/en-us/graph/ ... h-rest-1.0



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-MgaMailboxSetting



Return all mailbox settings for the user connected to through the registered token.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-MgaMailboxSetting -AutomaticReply



Set









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-MgaMailboxSetting -Language



Set









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Set-MgaMailboxSetting -TimeZone



Set









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-MgaMailboxSetting -WorkingHours



Set











RELATED LINKS