Showing posts with label Exchange Server. Show all posts
Showing posts with label Exchange Server. Show all posts

Thursday, May 30, 2024

Exchange Online - Search and Delete Specific Email

 


Connect Exchange Online Shell


1)   $Search=New-ComplianceSearch –Name “Remove Specific Emails” -ExchangeLocation All –ContentMatchQuery ‘(Subject: “Odelo Davranış Kuralları İncelemesi”)’ 

2)  Start-ComplianceSearch –Identity $Search.Identity 

3) New-ComplianceSearchAction –SearchName “Remove Specific Emails” -Purge –PurgeType SoftDelete 


Read more...

Thursday, February 14, 2019

Exchange Server 2013 - 2016 Meeting Room Mail Forwarding

Set-Mailbox -Identity "Meeting Room 1" -ForwardingAddress meetingroom2@abc.com -DeliverToMailboxAndForward $True
Read more...

Exchange 2013 -2016 Meeting Rooms Allow External Requests

Get-Mailbox "Meeting Room 1" | Set-CalendarProcessing -ProcessExternalMeetingMessages $true

Read more...

Friday, November 9, 2018

Search and Delete specific message from all mailboxes Exchange 2016

Open the Exchange Management Shell

Run the following commands.

New-ComplianceSearch -Name "Remove Message" -ExchangeLocation all -ContentMatchQuery 'subject:"Check This Order"'


Start-ComplianceSearch -Identity "Remove Message"
 
 
1) (Received:4/13/2016..4/14/2016) AND (Subject:'Action required')
 
2) (From:chatsuwloginsset12345@outlook.com) AND (Subject:"Check This Order")
 
 
 
Delete
 
New-ComplianceSearchAction -SearchName "Remove Message" -Purge -PurgeType SoftDelete 
 
 
Source 
 
 
 
 
   
 
 



Read more...

Monday, October 3, 2016

Get mailbox grant send on behalf to (PowerShell)

et-Mailbox -Filter {GrantSendOnBehalfTo -ne $Null} |Select Alias, @{Name='GrantSendOnBeh
alfTo';Expression={[string]::join(";", ($_.GrantSendOnBehalfTo))}} | Export-Csv -NoType -encoding "unicode" C:\MailboxesSendOnBehalfPermCheck.csv
Read more...

Get mailbox forward to from mailboxes

Get-Mailbox -Filter {ForwardingAddress -ne $Null} |Select Alias, ForwardingAddress | Export-Csv -NoType -encoding "unicode" C:\MailboxesForwardcheck.csv
Read more...

List all Users Who Have Access to Other Exchange Mailboxes (PowerShell)

Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation C:\\mailboxpermissionscheck.csv

Read more...

Thursday, July 21, 2016

You don't have permission to sync with this server exchange 2010

This error is caused by the maximum Mobile Phone limit (10 device)  in Exchange 2010.

You can increase this limit by using Throttling policy.

First Create new throttling policy.

New-Throttlingpolicy "Increased ActiveSync Devices1" -EasMaxDevices 
600 -EasMaxConcurrency 20
 
 -EasMaxDevices 20 (Maximum mobile phone limit)
 
 -EasMaxConcurrency  (Maximum  concurrent device that will sync.)


 
 
Then assign this policy to user.

Set-Mailbox username -ThrottlingPolicy "Increased ActiveSync Devices1"
 
 
 
Check if Policy applied to mailbox
 
Get-Mailbox username -ThrottlingPolicy | FL 
 

Read more...

Tuesday, May 10, 2016

Exchange 2010 Export to PST

Exchange 2010 Export to PST

Online Archive

New-MailboxExportRequest -Mailbox user.name -IsArchive -FilePath "\\exc01\PSTExport\username.pst"

Mailbox

New-MailboxExportRequest -Mailbox user.name -FilePath \\exc01\pst\username.pst

Get-MailboxExportRequest

Get-MailboxExportRequest -Name MailboxExport | fl

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Get-MailboxExportRequest | where {$_.status -eq "Completed"}
Read more...

Thursday, June 18, 2015

Prevent Exchange Server 2010 Direct File Server Access

By Default Exchange Server 2010 allows internal hyperlinks access by using Android smart phones.
Users can access hyperlinks that indicates internal file server in your organization by clicking hyperlinks in emails.

In order to prevent this type of access follow the steps below;

Open Exchange Management Console -> drill down to server configuration -> Client Access -> Exchange ActiveSync (middle tab) -> right click on the name (default website in my case) properties -> Remote file servers tab. From here, you can allow or deny access.
Read more...

Sunday, January 25, 2015

Change moderated mailbox approval period

Exchange Management Shell

set-retentionpolicytag ModeratedRecipients -AgeLimitForRetention 15 --> (day)
Read more...

Tuesday, January 6, 2015

Exchange Server moderation not working

Messages in arbitration mailbox will not expire if the arbitration mailbox does not have a retention policy assigned

Run following command to check if arbitration mailbox have retention policy.

Get-Mailbox -Arbitration | fl displayname,retentionpolicy

------------------
DisplayName     : Microsoft Exchange Approval Assistant
RetentionPolicy : ArbitrationMailbox
------------------
If “Microsoft Exchange Approval Assistant” mailbox doesn’t have any retention policy assigned, you should assign ArbitrationMailbox policy to it.

In order to manually start retention policy

Start-ManagedFolderAssistant "Microsoft Exchange Approval Assistant"


In order to Check statistics for "Microsoft Exchange Approval Assistant" mailbox use the command below;


Get-Mailbox -arbitration | Get-MailboxStatistics
Read more...

Exchange Server ActiveSync User List Powershell

[PS] C:\Windows\system32>Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics | select-object DeviceID,Identity,LastSuccessSync |export-csv c:\temp\report.csv

or

Get-CASMailbox -ResultSize Unlimited | where { $_.ActiveSyncEnabled -eq 'True'} | ft name, activesyncenabled –autosize > c:\ActiveSyncEnabled.txt

Read more...

Exchange server view mailbox and archive mailbox size

(Get-Mailbox) | Select-Object name,@{n="Primary Size(MB)";e={(Get-MailboxStatistics $_).totalItemsize.value.toMB()}},@{n="Archive Size(MB)";e={(Get-MailboxStatistics -archive $_).totalItemsize.value.toMB()}} | Export-csv c:\report.csv
Read more...

Tuesday, August 5, 2014

Archive Database Statistics

[PS] C:\Windows\system32>Get-MailboxStatistics -Database "Archive Database Name"
Read more...

Friday, July 25, 2014

Disabled AD Account that have mailboxes

Please execute the command below in EMS;

get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match “AccountDisabled”} | select name,database,organizationalunit | sort-object name | export-csv c:\disabledaccountswithmailbox.csv
Read more...

Sunday, June 8, 2014

New Local Move Request Archive Database Only

[PS] C:\Windows\system32>New-MoveRequest -Identity 'user.name' -ArchiveOnly -ArchiveTargetDatabase "TargetArchiveDBName"  -BadItemLimit 300 -AcceptLargeDataLoss


Read more...

Monday, April 7, 2014

Exchange Server - Forcing Retention Policy to manually run


Example;
Execute the command below in EMS

Start-ManagedFolderAssistant -Identity “Administrator”

For Child Domain

Start-ManagedFolderAssistant -Identity “Administrator” -DomainController dc01.root.child.com

Read more...

Wednesday, February 5, 2014

View and Set Exchange 2010 Attachment Size

Check attachment limits

Get-TransportConfig

Set-TransportConfig -ExternalDsnMaxMessageAttachSize 50Mb
Set-TransportConfig -InternalDsnMaxMessageAttachSize 50Mb
Set-TransportConfig -MaxSendSize 50Mb
- See more at: http://www.ercanozkurt.com/?cat=4&paged=6#sthash.gkwFSjtf.dpuf
Set attachment Limits

Set-TransportConfig -ExternalDSNMaxMessageAttachSize 10MB
Set-TransportConfig -InternalDSNMaxMessageAttachSize 10MB
Set-TransportConfig -MaxSendSize 10MB
Set-TransportConfig -ExternalDsnMaxMessageAttachSize 50Mb
Set-TransportConfig -InternalDsnMaxMessageAttachSize 50Mb
Set-TransportConfig -MaxSendSize 50Mb
- See more at: http://www.ercanozkurt.com/?cat=4&paged=6#sthash.gkwFSjtf.dpuf
Get-TransportConfig
Get-TransportConfig
Get-TransportConfig
Get-TransportConfig

Read more...

Monday, February 3, 2014

Check Free Space on Exchange Server DB

Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto
Read more...
 
span.fullpost {display:none;}