Public/PartnerMenu/Start-PartnerMenuToolbox.ps1
function Start-PartnerMenuToolbox { param ( [string]$TenantId ) $MenuItems = [ordered]@{ 1 = 'Set default calendar sharing policy.' 2 = 'Change all mailboxes to danish language.' 3 = 'Remove focused inbox from all mailboxes.' 4 = 'Enable External warning in exchange. (Tag based)' 5 = 'Apply standard mailsetup to mailbox.' q = 'Exit.' } $SelectedOption = ($MenuItems | Out-ConsoleGridView -Title "Toolbox" -OutputMode Single).Name switch ($SelectedOption) { "1" { Add-DefaultCalendarPolicy -TenantId $TenantId } "2" { Set-MailboxDefaultLanguage -TenantId $TenantId } "3" { Remove-FocusedInboxAllMailboxes -TenantId $TenantId } "4" { Add-ExternalWarningInOutlook -TenantId $TenantId } "5" { Add-StandardMailsetup -TenantId $TenantId } Default {} } } |