powershell:postfachberechtigungen_ueberpruefen
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
powershell/postfachberechtigungen_ueberpruefen.txt · Zuletzt geändert: 2019/05/22 17:52 von ronny