How do I combine a variable with the rest of the command, without getting an error:
i.e. I want to issue:
Set-MailboxFolderPermission -Identity [email protected]:\Calendar -User Default -AccessRights Reviewer
But using a variable $email for the email address. I tried:
Set-MailboxFolderPermission -Identity $email:\Calendar -User Default -AccessRights Reviewer
But this gives an error.