public/Set-O365Info.ps1
<#
.Synopsis This powershell cmdlet allows you to apply settings to all mailboxes in your organization at once. Currently, the only option available is the timezone. .Description Sets information for ALL mailboxes. Currently the only option you can set is the Timezone within version 1.0 .Example Set-O365Info -SettingName Timezone #> Function Set-O365Info{ [cmdletbinding()] Param ( [Parameter(Position=0,mandatory=$true)] [string]$SettingName ) # End of Parameters Process { Test-O365Connection switch ($SettingName) { Timezone { $Select = ReadHost "Display list of available ID Names? : " if ($select -eq "Y") {[System.TimeZoneInfo]::GetSystemTimeZones() | Format-Table -Property ID, DisplayName} $TZ = Read-Host "Time Zone ID: " get-mailbox | Set-MailboxRegionalConfiguration -TimeZone $TZ } } }#End Process } |