Pages

Friday, December 4, 2020

Comparing Search-Mailbox and Compliance Search Actions

Comparing Search-Mailbox and Compliance Search Actions

Table 1 summarizes the functionality available in Search-Mailbox and purges executed with compliance search actions. Both have their unique characteristics: compliance searches are faster and can process more mailboxes in a single operation but are limited to what they can remove from a mailbox. Search-Mailbox can focus on Recoverable Items or ignore a mailbox’s archive, while compliance searches can focus on a single target folder. The biggest difference is that Search-Mailbox can copy items to a target mailbox when it removes them from other mailboxes. You can export items with a compliance search, but you must do this separately and before you remove anything.

Monday, August 10, 2020

Xóa Mailbox database bằng tay

Dùng khi không thể xóa Mailbox database trên ECP.

1. Kiểm tra trước khi xóa.

Get-MailboxRestoreRequest
Get-MoveRequest

Get-Mailbox -Database DBName1 -monitoring Get-Mailbox -Database DBName1 -Auditlong Get-Mailbox -Database DBName1 -Archive
- Chuyển All mailbox Dabase qua Mailbox khác

Get-Mailbox -Database “Source Database Name” -Arbitration | New-MoveRequest – TargetDatabase “Target Database Name”

Get-Mailbox -Database “Source Database Name” -Archive |

New-MoveRequest -TargetDatabase “Target Database Name”


- Xóa mailbox system Get-Mailbox -Database DBName1 -Archive | Disable-Mailbox - Xem tình trạng
Get-MoveRequestStatistics -MoveRequestQueue “Target Database Name”

Get-MoveRequest | where {$_.status -eq “Completed”} | Remove-MoveRequest


2. Mở ADSIedit và theo đường dẫn như bên dưới.

Configuration > Services > Microsoft Exchange > ExchOrganization > Mailbox Replication

Lưu ý: Kiểm tra chính xác Database cần xóa

[image%255B3%255D.png]

Gỡ bỏ Exchange 2016 bằng command


Mount file ISO Exchange 2016 và gõ lệnh như bên dưới.

X:\ Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms

X: là ổ đĩa đã mount file ISO

Friday, July 24, 2020

JET_errFileAccessDenied, Cannot access file, the file is locked or in use, Cannot see Active Directory, hr=0x80004005, ec=-501

When the Exchange mailbox database won't mount, you can't access the mailbox files, send or receive emails on Outlook or checking mailbox logs, etc. Don’t worry if you are unable to access the Exchange Server database. On this page, EaseUS software will analyze the causes of why the Exchange Server mailbox database fails to mount and offer reliable solutions to resolve this issue without losing database.

Causes of Exchange mailbox not mounting:


Monday, July 20, 2020

Exchange 2013/2016: HTTP redirection issues with ECP virtual directory – /owa/ecp


Exchange 2013: HTTP redirection issues with ECP virtual directory – /owa/ecp
When you try to access ECP on Exchange 2013, browser redirects to /owa/ecp and shows “Bad Request”
You will see this if HTTP redirection is applied on Default website and those settings got replicated to all Virtual directories underneath.
Let’s look at How to enable HTTP redirect on Exchange 2013.
To enable HTTP to HTTPS redirection on exchange 2013, on IIS VDir highlight Default website and click HTTP Redirect:

Sunday, July 12, 2020

Exchange 2016 Certificate Problem

Khi gặp lỗi như bên dưới, tiến hành kiểm tra Evenlog sẽ thấy lỗi mô tả như bên dưới.

A special Rpc error occurs on server S-XXXXXX: Could not grant Network Service access to the certificate with
thumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxx because a cryptographic exception was thrown.
    + CategoryInfo          : NotSpecified: (:) [Enable-ExchangeCertificate], InvalidOperationException
    + FullyQualifiedErrorId : [Server=S-XXXXXX,RequestId=0ce68699-de3e-4ac4-9c7a-094b538d302d,TimeStamp=01/06/2020 13:
   59:03] [FailureCategory=Cmdlet-InvalidOperationException] D9EA479C,Microsoft.Exchange.Management.SystemConfigurati
  onTasks.EnableExchangeCertificate
    + PSComputerName        : s-XXXXXX.xxxxxxxx.co.uk

1. Gỡ bỏ hoặc Disable Antivirus


2. Tiến hành import ssl lại, tham khảo như link bên dưới.


3. Trường hợp khi import ssl mới, vào Ecp, Exchange Console bị lỗi, tham khảo link bên dưới để fix

An error occurred while using SSL configuration for endpoint 0.0.0.0:444 or Microsoft Exchange 2013/ 2016/ 2019 shows blank ECP & OWA after changes to SSL certificates

An error occurred while using SSL configuration for endpoint 0.0.0.0:444

The other day, one of my Exchange 2016 lab servers stopped working. Well, I say "stopped working" but most things seemed to be working except for the Exchange Management Shell where I would get the following error when opening it:
OWA and ECP were also not working: I would simply get a blank page after signing in...

Thursday, July 9, 2020

Cấu hình IIS SMTP Relay qua Office 365


Cấu hình IIS SMTP Relay qua Office 365 

Yêu cầu phải có IP WAN Static và cấu hình Router như bên dưới.
o   Cấu hình trên Router để Server SMTP chỉ đi internet trên IP WAN này
o   Allow port 25 chiều out
Trên Office 365:
-          Allow IP WAN to O365 phần Connector
-          Allow IP WAN filter phần Connection filter

1.      Vào Office 365 / Exchange admin center
Mail flow / Connector
Tạo connect cho phép IP WAN gửi vào O365

Wednesday, July 8, 2020

How do I use Office365 for SMTP?

How to set up a multifunction device or application to send email using Office 365

This article explains how you can send email from devices and business applications when all of your mailboxes are in Office 365. For example:
  • You have a scanner, and you want to email scanned documents to yourself or someone else.
  • You have a line-of-business (LOB) application that manages appointments, and you want to email reminders to clients of their appointment time.

Saturday, June 20, 2020

Check if activation is blocked on that server for the DB

Check if activation is blocked on that server for the DB. The error indicates that
Get-MailboxDatabaseCopyStatus  MBX-DB1\EMAIL2 |FL activationsuspended
or for the entire server
Get-MailboxServer  EMAIL2 | FL DatabaseCopyAutoActivationPolicy
If you want to remove that block:
Get-MailboxDatabaseCopyStatus  MBX-DB1\EMAIL2 |  Resume-MailboxDatabaseCopy

Thursday, June 18, 2020

Database Unable to Mount while Restoring the Microsoft Exchange Database

Database Unable to Mount while Restoring the Microsoft Exchange Database

Symptom
When I restore a Microsoft Exchange database, the database is unable to mount. The required logs are missing or the transaction logs are not contiguous. There are event errors such as 454, 455, and 2006 in the event log.

Monday, June 15, 2020

HOW TO: DELETE AND RE-CREATE THE EXCHANGE ECP VIRTUAL DIRECTORY

To delete the ECP virtual directory of your Exchange server and re-create it from scratch, you can use the below to get the identity of the virtual directory.

get-EcpVirtualDirectory |fl

Use this to remove the virtual directory in question

Remove-EcpVirtualDirectory -identity "MYSERVER\ecp (Exchange Back End)"

Create the new virtual directory use the below

New-EcpVirtualDirectory -externalurl "https://outlook.mydomain.com/ecp" -internalurl "https://myserver/ecp" -Server "myserver.mydomain.local"

HOW TO: REMOVE EXCHANGE MAILBOX EXPORT REQUESTS


HOW TO: REMOVE EXCHANGE MAILBOX EXPORT REQUESTS


After a number of exports or imports, you might need to clean up the failed, completed or other status when running the get-mailboxexportrequest report in PowerShell. To clean these open the Exchange PowerShell and run the below.

Clean Export requests
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest
Get-MailboxExportRequest -Status Failed | Remove-MailboxExportRequest

Clean Import requests
Get-MailboxImportRequest -Status Completed | Remove-MailboxExportRequest
Get-MailboxImportRequest -Status Failed | Remove-MailboxExportRequest

Wednesday, June 10, 2020

VCenter 6.7: Resizing disk fails with error message

VEEAM failed recently to backup one of your servers. The error message was “Error: Virtual disk size is not a multiple of 1KB.”.
Error: Virtual disk size is not a multiple of 1KB

Thursday, May 14, 2020

Clear database for servicedesk plus

You need to stop the application and initiate reinitializeDB.bat from [ServiceDesk Home\Server] of the command prompt, this will drop all the tables.

Also if the database is PGSQL, then initiate initPgsql.bat  from the command prompt of ServiceDesk under [ServiceDesk Home\Bin].

Monday, April 20, 2020

Reject emails without sending notice to sender

Reject emails without sending notice to sender


Increasing expiry period of moderated distribution list messages - Exchange 2010/2013/2016/2019/Exchange Online

Connect to Exchange Online Powershell

Get-RetentionPolicyTag ModeratedRecipients | fl AgeLimitForRetention
You will see it as 2 days.


Increase it to preferred date(Tested with max 5 days)
Set-RetentionPolicyTag ModeratedRecipients -AgeLimitForRetention 5.00:00:00





Friday, February 21, 2020

Hướng dẫn active Windows 2016

Hướng dẫn active Windows 2016, How to Upgrade Windows Server 2016 Evaluation to Full
Hướng dẫn active Windows 2016, How to Upgrade Windows Server 2016 Evaluation to Full Version


Nếu bạn ban chạy bản Standard Evaluation thì bạn chỉ cần chạy lệnh sau để chuyển từ Evaluation qua Full và Active key luôn


dism /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula