Przeglądaj źródła

add-sharedmailboxmember

Tobias Simetsreiter 2 lat temu
rodzic
commit
cf50778258

+ 12 - 0
bin/Add-SharedMailboxMember.ps1

@@ -0,0 +1,12 @@
+param(
+    $mailbox,
+    $user
+)
+
+Add-MailboxPermission -Identity $mailbox -User $user -AccessRights Full
+Add-RecipientPermission -Identity $mailbox -Trustee $user -AccessRights SendAs -Confirm $false
+
+"Access Permissions:" | Out-Host
+Get-Mailbox $mailbox | Get-MailboxPermission | Format-Table
+"Sending Permissions:" | Out-Host
+Get-RecipientPermission -Identity $mailbox | Format-Table

+ 1 - 0
bin/Get-EffectiveAccessRecurse.ps1

@@ -24,5 +24,6 @@ Get-ChildItem -Recurse -Depth $Depth -Directory $path | ForEach-Object {
         InheritedFrom=$rights.InheritedFrom
         InheritanceEnabled=$rights.InheritanceEnabled
         Account=$Account
+        Owner=(Get-Acl $_.FullName).Owner
     }
 }