I am trying to use the Set-MailboxAutoReplyConfiguration cmdlet to configure an Exchange mailbox auto reply in a script. I used the command Install-Module -Name ExchangeOnlineManagement in an elevated powershell prompt and was able to confirm that it is installed using Import-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagement. I still get the error message " The term 'Set-MailboxAutoReplyConfiguration' is not recognized as the name of a
cmdlet..." on both the shell and my script, even after including Import-Module ExchangeOnlineManagement.
I appreciate any guidance on getting this cmdlet to work.
I just needed to call Connect-ExchangeOnline immediately after importing the module. Thank you Mathias.