Powershell – Show witch users have access to mailboxes

$file =  “C:\ita\fulladgang.txt”
$AllUsers = get-mailbox  | select SamAccountName, name, alias
$AllUsers | Foreach {
echo “”
echo “”
echo “”
echo $_.name
get-mailboxfolderpermission -identity $Mailbox
} | out-File $File

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *