Currently, it's not possible to set up HTML-based auto-reply messages on shared or resource mailboxes, as you cannot directly log on to OWA to set the message. Through Powershell, you can do this quite easily.

First, create two HTML-files containing your internal and external message. You do not have to specify the <html> and <body> tags. Save these to a convenient location. Be sure to save them as regular text files, with extension .txt.

As said earlier, omit the InternalMessage or ExternalMessage parameter if you do not have a message for them. Also, it's important to mind the quotes around the message variables.

You can verify the status of the auto-reply through another cmdlet:

Get-MailboxAutoReplyConfiguration <your-shared-mailbox>

Naturally, all of the above also works for regular mailboxes. You can use these cmdlets to set Out-of-Office replies for any mailbox. Additionally, these cmdlets also work on regular Exchange (2010/2013/2016), and work exactly the same.