uj könyvtär Scripts

This commit is contained in:
2025-12-15 10:00:38 +01:00
parent c06d51509d
commit 0c3b5e75a6
43 changed files with 1957 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
$User = "i.meszely@aps-hh.de"
# Full Access
Get-Mailbox | Get-MailboxPermission | Where-Object { $_.User -like $User -and $_.AccessRights -contains "FullAccess" } | Select-Object Identity, User, AccessRights
# Send As
Get-Mailbox | Get-ADPermission | Where-Object { $_.User -like $User -and $_.ExtendedRights -like "Send As" } | Select-Object Identity, User, ExtendedRights
# Mitglied
Get-DistributionGroup | Where-Object { (Get-DistributionGroupMember $_.Identity -ResultSize Unlimited) -contains $User } | Select-Object Name, PrimarySmtpAddress