I've recently been tasked with changing all owners of shared mailboxes in two Organizational Unit's permissions from ReadAccess to FullAccess. Is there a way to do this? The below obviously does not work since -OrganizationalUnit will not work with get-mailboxpermission, but just trying to give an idea of close to what I'm trying to accomplish. Any help would be much appreciated.
$ExistingReadPerms = Get-mailboxpermission -OrganizationalUnit "Ou/ConferenceRooms" -resultsize "unlimited" | ? {$_.AccessRights -eq 'ReadPermissions'}
Foreach ($Perm in $ExistingReadPerms)
{
Add-mailboxPermission -OrganizationalUnit "Ou/ConferenceRooms" -resultsize "unlimited" -AccessRights FullAccess -user $Perm.User
}