Get-ResourceDelegates
This Script will Get Report of Delegates rights in Office 365
This script check who has Delegates permission on mailbox and generate a report of all the mailbox in Office 365.
Save the below Code in text file and Save as PS1.
POWERSHELL
######################################
#Author = Sunil Chauhan
#Email-ID = sunilkms@gmail.com
# Name = Get-ResourceDelegates.ps1
######################################
cls
$C = 0
"
Please wait Getting Mailbox..."
$Mbx=Get-Mailbox -ResultSize Unlimited
"
Mailbox Data Fatched Completed."
start-sleep 1
"
Now will start checking Resource Delegates info...."
$ResourceDelegates=
foreach ($user in $mbx)
{
$C++ ;
Write-host "Getting ResourceDelegates for User No = $c "
Get-CalendarProcessing $user.alias
}
$Report= $ResourceDelegates | Select Identity, ResourceDelegates
$exportReport= $report | Export-CSV "ResourceDelegates.csv"
"
Reporting completed, File Exported to ResourceDelegates.csv
"