Sets the out of office settings for a user.
The Set-CIPPOOO function is used to set the out of office settings for a user in a customer's Exchange environment. It allows you to specify the customer tenant ID, user, auto reply state, external message, internal message, start time, and end time for the out of office settings.
The auto reply state. Valid values are 'Scheduled', 'Disabled', or 'Enabled'.
The end time for the out of office settings. This parameter is mandatory when autoreplystate is 'Scheduled'.
The start time for the out of office settings. This parameter is mandatory when autoreplystate is 'Scheduled'.
PS > Set-CIPPOOO -CustomerTenantID "contoso.onmicrosoft.com" -User "[email protected]" -autoreplystate "Disabled"
PS > Set-CIPPOOO -CustomerTenantID "contoso.onmicrosoft.com" -User "[email protected]" -autoreplystate "Enabled"
PS > Set-CIPPOOO -CustomerTenantID "contoso.onmicrosoft.com" -User "[email protected]" -autoreplystate "Enabled" -externalmessage "I'm currently out of office." -internalmessage "I'm currently out of office." -starttime 2024-06-21 14:00" -endtime "2024-06-21 14:30""