do any of you guys know how to get this to work?
@str = 'IMAP'
set-casmailbox -identity username ("-str" + 'Enabled') $true
i get an error that says:
Set-CASMailbox : A parameter cannot be found that matches parameter name '-IMAPEnabled', which is bizarre because it parses correctly. if i hard code -IMAPEnabled, it works fine.
@str = 'IMAP'
set-casmailbox -identity username ("-str" + 'Enabled') $true
i get an error that says:
Set-CASMailbox : A parameter cannot be found that matches parameter name '-IMAPEnabled', which is bizarre because it parses correctly. if i hard code -IMAPEnabled, it works fine.