Additional settings-related features and issues within Microsoft Teams for business
I can't believe you think its OK there are no settings in the admin panel for setting users timezones
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I would like to change and apply the work hours for all my users. How can I do that?
Regards
Steven
Additional settings-related features and issues within Microsoft Teams for business
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I can't believe you think its OK there are no settings in the admin panel for setting users timezones
Oi
Gostaria de alterar e aplicar as horas de trabalho para todos os meus usuários. Como posso fazer isso?
Relação
Steven
Olá, você pode utilizar o seguinte script PowerShell, para definir o horário de trabalho de todos os usuários:
Connect-ExchangeOnline
# Obter a lista de todos os usuários
$users = Get-Mailbox -ResultSize Unlimited
# Definir o horário de trabalho para cada usuário
foreach ($user in $users) {
Set-MailboxCalendarConfiguration -Identity $user.UserPrincipalName -WorkingHoursStartTime "09:00:00" -WorkingHoursEndTime "15:00:00"
}
Dear Stevenyf,
Thank you for reaching out to the Microsoft Community. We are happy to assist you.
I apologize for any inconvenience caused by the working hours. I have checked a few things on my side, but currently, there are no built-in settings in the Microsoft 365 admin portal to change the work hours.
From the user mailbox’s calendar settings, we can change it, and it will sync with Teams.
Set Work Hours in Outlook:
For changing working hours for all users, you can use PowerShell commands.
To install & connect:
Set-ExecutionPolicy RemoteSigned
Install-Module ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
To set work hours for a specific user:
Set-MailboxCalendarConfiguration -Identity ******@domain.com -WorkingHoursStartTime "09:00:00" -WorkingHoursEndTime "17:00:00"
In this example:
******@domain.com with the email address of the user whose work hours you want to change.WorkingHoursStartTime and WorkingHoursEndTime to the desired start and end times.Reference: Set-MailboxCalendarConfiguration (ExchangePowerShell) | Microsoft Learn
For changing the working hours for all users at once, you can utilize a PowerShell script. While our primary focus is on Teams basics, and we are not experts in PowerShell scripting, I would like to provide some guidance regarding your query. For detailed assistance with PowerShell scripts, I recommend reaching out to the Microsoft PowerShell support/community. Please visit their website: Microsoft PowerShell Community. Experts in this category possess extensive knowledge of these issues and can provide tailored solutions to unique problems.
I apologize for redirecting you to a different community, but I believe this step will ensure faster and more accurate assistance for your specific scenario.
Thank you for your cooperation and understanding. Please do not hesitate to post your queries in the Microsoft Community, and we will always do our best to assist you!
Sincerely
Feroz Mahmud | Microsoft Community Moderator
Hello Dear Stevenyf,
Good day to you and I hope you are doing well.
We haven't heard back from you, so I wanted to quickly check if you had a chance to review my previous response.
Please feel free to reach out if you need further assistance; we are happy to assist you further.
Thank you for your time and cooperation.
Sincerely
Feroz Mahmud | Microsoft Community Moderator