Try a get then a set. Example:
Get-MailboxAutoReplyConfiguration <id> | Set-MailboxAutoReplyConfiguration etc...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Trying to create a script that will set the auto-response for all disabled users but I am getting an error on the Set-MailboxAutoReplyConfiguration command.
I have tried it in both Powershell and Exchange Management Shell.
I have tried different variables for the identity and all give the same error.
Running this on the local Exchange Server - Exchange Server 2019 CU14 (2024H1)
Any help would be greatly appreciated.
Set-MailboxAutoReplyConfiguration xxx@abc.com -AutoReplyState Enabled -ExternalAudience All -InternalMessage 'xxx message xxx' -ExternalMessage 'xxx message xxx'
Write-ErrorMessage : |Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because Identity:"xxx@abc.com" couldn't be found.
At C:\Users\administrator.abc.com\AppData\Local\Temp\tmpEXO_chzfs0kz.lqy\tmpEXO_chzfs0kz.lqy.psm1:1191 char:13
Write-ErrorMessage $ErrorObject
CategoryInfo : NotSpecified: (:) [Set-MailboxAutoReplyConfiguration], ManagementObjectNotFoundException
FullyQualifiedErrorId : [Server=SN4PR22MB3221,RequestId=3de98cea-361c-2496-33d1-af1ffacf12a1,TimeStamp=Wed, 01 May 2024 21:15:49 GMT],Write-ErrorMessage
Try a get then a set. Example:
Get-MailboxAutoReplyConfiguration <id> | Set-MailboxAutoReplyConfiguration etc...
Damm, got the same error, even with just the Get-MailboxAutoReplyConfiguration command.
Where are you running these commands? They have to be run against where the mailbox is.
It appears you are running against Exchange Online, not on-prem.
Server=SN4PR22MB3221
Where do the mailboxes live?
i have exactly the same issue. Exchange Online... tried get/set, but have the same result "couldn't be found"