Postfachberechtigungen überprüfen

$b = @(); foreach ($e in (Get-MailboxPermission -Identity info@contoso.com | ?{$_.IsInherited -eq $false})){if ($e.User.StartsWith("contoso\")){$b += ($e.User.Split("\"))[1]}}; $c = @(); foreach ($u in $b){$c += Get-ADUser -Identity $u -Server contoso.com -Properties *}; $c | ft Name, SamAccountName, mail