Uncategorized

Powershell

Powershell

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://ps.outlook.com/powershell/” -Credential $cred -Authentication Basic -AllowRedirection

Import-PSSession $session

Get-Mailbox

Get-Recipient -ResultSize Unlimited | select DisplayName,RecipientType,EmailAddresses | Export-Csv C:\Users\Ricardo\Desktop\email-recipients.csv

Get-MessageTrackingLog -Recipients xxxx.xxxxx@malla-group.com | where {($_.EventId -eq “RECEIVE”)}

Agregar Permiso de Ver Mail Recipientes

Primero Ver cuales son los grupos que tenemos

$ Get-Group

Agregarl el Mail Recipients Role al “Security Administrator” Group

New-ManagementRoleAssignment -Role “Mail Recipients” -SecurityGroup “Security Administrator” -Name “Mail Recipients_Senior Admin – Delegate” -Delegating

Leave a Reply

Your email address will not be published. Required fields are marked *