how can I change the work hours for all users?

Anonymous
2024-08-16T06:42:15+00:00

Hi

I would like to change and apply the work hours for all my users. How can I do that?

Regards

Steven

Microsoft Teams | Microsoft Teams for business | Settings | Other

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.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-11T13:18:25+00:00

    I can't believe you think its OK there are no settings in the admin panel for setting users timezones

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-02-05T13:44:00+00:00

    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"

    }

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-08-16T10:43:42+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:

    1. Sign in to Outlook https://outlook.office.com/
    2. Go to Settings > Calendar > Work hours and location.
    3. Select the checkboxes for the days you want to set.
    4. Use the dropdowns to select your work hours and your location each day.
    5. Click Save to apply the changes.

    Image

    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:

    • Replace ******@domain.com with the email address of the user whose work hours you want to change.
    • Adjust the 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

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-08-19T10:09:03+00:00

    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

    Was this answer helpful?

    0 comments No comments