Oct 10 2018 10:38 AM
Hi experts i am using exchange hybrid environment, i want to pull this report for Office365 users, i am using the below script and it works fine but i want to add FirstName,LastName,Primary email address, Secondary email address, EmployeeID, Job Title, and OWA enabled or disabled to this script. How do i add to this PS1
foreach($users in Get-Mailbox -ResultSize Unlimited){$users | Foreach-Object {
$user = $_
$stats = Get-MailboxStatistics $user.Name
New-Object -TypeName PSObject -Property @{
DisplayName = $User.DisplayName
IssueWarningQuota = $User.IssueWarningQuota
ProhibitSendQuota = $User.ProhibitSendQuota
ProhibitSendReceiveQuota = $User.ProhibitSendReceiveQuota
TotalItemSize = $stats.TotalItemSize
AuditEnabled = $User.AuditEnabled
}
}
}