Automatic replies (...
 
Notifications
Clear all

Automatic replies (OOO) not working

10 Posts
2 Users
0 Reactions
10.3 K Views
Posts: 42
Topic starter
(@gflex)
Trusted Member
Joined: 8 years ago

Hi,

We have enabled the Out Off Office feture in 1.4.6

When i go to the mailbox and try to sett OOO trugh websitepanel we recive the folowing error.

ERROR: 'Hosted Microsoft Exchange Server 2016' SetMailboxAutoReplySettings
System.Management.Automation.ParameterBindingException: Cannot bind parameter 'AutoReplyState'. Cannot convert value "Enabled" to type "Microsoft.Exchange.InfoWorker.Common.OOF.OofState". Error: "Invalid cast from 'SolidCP.Providers.HostedSolution.OofState' to 'Microsoft.Exchange.InfoWorker.Common.OOF.OofState'." ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "Enabled" to type "Microsoft.Exchange.InfoWorker.Common.OOF.OofState". Error: "Invalid cast from 'SolidCP.Providers.HostedSolution.OofState' to 'Microsoft.Exchange.InfoWorker.Common.OOF.OofState'." ---> System.InvalidCastException: Invalid cast from 'SolidCP.Providers.HostedSolution.OofState' to 'Microsoft.Exchange.InfoWorker.Common.OOF.OofState'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Management.Automation.LanguagePrimitives.ConvertIConvertible(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.ConvertIConvertible(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConversionData`1.Invoke(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable)
at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at SolidCP.Providers.HostedSolution.Exchange2016.ExecuteShellCommand(Runspace runSpace, Command cmd, Boolean useDomainController, Object[]& errors, Boolean writeErrorExchangeLog)
at SolidCP.Providers.HostedSolution.Exchange2016.SetMailboxAutoReplySettingsInternal(String accountName, ExchangeMailboxAutoReplySettings settings)
at SolidCP.Server.ExchangeServer.SetMailboxAutoReplySettings(String accountName, ExchangeMailboxAutoReplySettings settings)

And

Cmdlet failed. Cmdlet Get-MailboxSearch, parameters -Identity "user@domain.com -DomainController "domaincontroler.domain.local".

Dose any one have any idees on how to fix this?

9 Replies
Posts: 5
(@qschulz)
Active Member
Joined: 6 years ago

Hi,

Can You tell me Your Exchange version? It works for us on Exchange 2016 without any problem.

Reply
Posts: 5
(@qschulz)
Active Member
Joined: 6 years ago

Can You try set OOF in Exchange-Shell with

Set-MailboxAutoReplyConfiguration -Identity user@domain.com -AutoReplyState Enabled -InternalMessage "Internal auto-reply message." -ExternalMessage "External auto-reply message." command?

Reply
Posts: 42
Topic starter
(@gflex)
Trusted Member
Joined: 8 years ago

HI Ivan,

Sorry, Exchange 2016 roolup 4 on Windows server 2012 R2.

The powershell command works and after running it i can se the OOO in solidcp.

I just dosent work trugh solidcp.

Any other idees?

Reply
Posts: 5
(@qschulz)
Active Member
Joined: 6 years ago

SolidCP can not correctly cast "Microsoft.Exchange.InfoWorker.Common.OOF.OofState" enum on AutoReplyState parameter. Maybe that's due old PowerShell in Windows 2012.

Can You now try to setup OOF with

Set-MailboxAutoReplyConfiguration -Identity user@domain.com -AutoReplyState "Enabled" -InternalMessage “Internal auto-reply message.” -ExternalMessage “External auto-reply message.”

and

Set-MailboxAutoReplyConfiguration -Identity user@domain.com -AutoReplyState 1 -InternalMessage “Internal auto-reply message.” -ExternalMessage “External auto-reply message.”  (string or int as AutoReplyState parameter)

Please tell me which command works correctly. On my PowerShell works both.

Reply
Page 1 / 2
Share: