Add shared mail full access to room powershell

To add the "Shared Mail Full Access" permission to a room in PowerShell, you can use the following command:

Add-MailboxPermission -Identity <RoomMailboxName> -User <UserPrincipalName> -AccessRights FullAccess -InheritanceType All

Here:

For example:

Add-MailboxPermission -Identity "Conference Room" -User "[email protected]" -AccessRights FullAccess -InheritanceType All

This command grants the user "[email protected]" full access to the "Conference Room" mailbox.

Note: You need to run this command in the Exchange Management Shell, not in the regular PowerShell console.

Also, you can use the Get-MailboxPermission cmdlet to verify the permissions on the mailbox:

Get-MailboxPermission -Identity "Conference Room"

This will show you the current permissions on the mailbox, including the users who have been granted access and the level of access they have.