In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
SFB project experience-59-Export-user mailbox-permissions-Export FullAccess & SendAs permissions for Shared Mailboxes
Actual demand:
Personnel Department:
You need to use the same mailbox to log in and send and receive email.
The new user mailbox is assigned the appropriate permissions, and then the user is assigned to multiple individuals, so that everyone can use the same mailbox to log in and send and receive emails.
Scene:
When migrating across forests, you need to export user permissions to facilitate the assignment of permissions to users in the final forest.
Solution:
$OutFile = "C:\ TempPermissionExport.txt"
"DisplayName" + "^" + "Alias" + "^" + "Full Access" + "^" + "Send As" | Out-File $OutFile-Force
$Mailboxes = Get-Mailbox-RecipientTypeDetails SharedMailbox-ResultSize:Unlimited | Select Identity, Alias, DisplayName, DistinguishedName
ForEach ($Mailbox in $Mailboxes) {
$SendAs = Get-ADPermission $Mailbox.DistinguishedName |? {$_ .ExtendedRights-like "Send-As"-and $_ .User-notlike "NT AUTHORITYSELF"-and! $_ .IsInherenced} |% {$_ .User}
$FullAccess = Get-MailboxPermission $Mailbox.Identity |? {$_ .Acce***ights-eq "FullAccess"-and! $_ .IsInherenced} |% {$_ .User}
$Mailbox.DisplayName + "^" + $Mailbox.Alias + "^" + $FullAccess + "^" + $SendAs | Out-File $OutFile-Append
}
*
Are you required to export all assigned permissions to a set of mailboxes?
Using this script, you will be able to export full access and Agent send permissions for any mailbox group you want.
This script works for Exchange 2007, but there's no reason why it doesn't work for Exchange 2010 either.
You can customize the $Mailboxes query to collect the mailboxes to which you want to export details.
This is just a Get-Mailbox query. The export will be in the form of a txt file, but the results will be separated by the ^ symbol. Just import it into Excel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.