Tìm các URL của Exchange Server bằng PowerShell

Cách hiệu quả nhất để tìm các URL là sử dụng PowerShell. Đầu tiên, chúng ta sẽ chuẩn bị script, sau đó sẽ chạy nó. Bạn có thể tải xuống script GetExchangeURLs.ps1 và lưu nó trong thư mục C:\scripts\ trên máy chủ Exchange.

1. Tìm các URL của Exchange Server bằng PowerShell

Mở Exchange Management Shell dưới quyền quản trị viên. Chuyển đổi thư mục đến C:\scripts. Khi chạy lệnh, hãy thêm tên máy chủ sau tham số -Server.

Ví dụ:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[PS] C:\>cd C:\scripts
[PS] C:\scripts>.\GetExchangeURLs.ps1 -Server "EX01-2016"
----------------------------------------
Querying EX01-2016
----------------------------------------
Autodiscover
- Internal SCP: https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml
Exchange Control Panel
- Internal: https://mail.exoip.com/ecp
- External: https://mail.exoip.com/ecp
Exchange Web Services
- Internal: https://mail.exoip.com/EWS/Exchange.asmx
- External: https://mail.exoip.com/EWS/Exchange.asmx
MAPI
- Internal: https://mail.exoip.com/mapi
- External: https://mail.exoip.com/mapi
ActiveSync
- Internal: https://mail.exoip.com/Microsoft-Server-ActiveSync
- External: https://mail.exoip.com/Microsoft-Server-ActiveSync
Offline Address Book
- Internal: https://mail.exoip.com/OAB
- External: https://mail.exoip.com/OAB
Outlook Web App
- Internal: https://mail.exoip.com/owa
- External: https://mail.exoip.com/owa
PowerShell
- Internal: https://mail.exoip.com/powershell
- External: https://mail.exoip.com/powershell
Outlook Anywhere
- Internal: mail.exoip.com
- External: mail.exoip.com
Finished querying all servers specified.
[PS] C:\>cd C:\scripts [PS] C:\scripts>.\GetExchangeURLs.ps1 -Server "EX01-2016" ---------------------------------------- Querying EX01-2016 ---------------------------------------- Autodiscover - Internal SCP: https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml Exchange Control Panel - Internal: https://mail.exoip.com/ecp - External: https://mail.exoip.com/ecp Exchange Web Services - Internal: https://mail.exoip.com/EWS/Exchange.asmx - External: https://mail.exoip.com/EWS/Exchange.asmx MAPI - Internal: https://mail.exoip.com/mapi - External: https://mail.exoip.com/mapi ActiveSync - Internal: https://mail.exoip.com/Microsoft-Server-ActiveSync - External: https://mail.exoip.com/Microsoft-Server-ActiveSync Offline Address Book - Internal: https://mail.exoip.com/OAB - External: https://mail.exoip.com/OAB Outlook Web App - Internal: https://mail.exoip.com/owa - External: https://mail.exoip.com/owa PowerShell - Internal: https://mail.exoip.com/powershell - External: https://mail.exoip.com/powershell Outlook Anywhere - Internal: mail.exoip.com - External: mail.exoip.com Finished querying all servers specified.
[PS] C:\>cd C:\scripts

[PS] C:\scripts>.\GetExchangeURLs.ps1 -Server "EX01-2016"

----------------------------------------
 Querying EX01-2016
----------------------------------------

Autodiscover
 - Internal SCP: https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml

Exchange Control Panel
 - Internal: https://mail.exoip.com/ecp
 - External: https://mail.exoip.com/ecp

Exchange Web Services
 - Internal: https://mail.exoip.com/EWS/Exchange.asmx
 - External: https://mail.exoip.com/EWS/Exchange.asmx

MAPI
 - Internal: https://mail.exoip.com/mapi
 - External: https://mail.exoip.com/mapi

ActiveSync
 - Internal: https://mail.exoip.com/Microsoft-Server-ActiveSync
 - External: https://mail.exoip.com/Microsoft-Server-ActiveSync

Offline Address Book
 - Internal: https://mail.exoip.com/OAB
 - External: https://mail.exoip.com/OAB

Outlook Web App
 - Internal: https://mail.exoip.com/owa
 - External: https://mail.exoip.com/owa

PowerShell
 - Internal: https://mail.exoip.com/powershell
 - External: https://mail.exoip.com/powershell

Outlook Anywhere
 - Internal: mail.exoip.com
 - External: mail.exoip.com

Finished querying all servers specified.

2. Tìm các URL của Exchange Server bằng Exchange Admin Center (EAC)

Bạn cũng có thể tìm các URL này trong Exchange Admin Center (EAC). Đăng nhập vào EAC, chọn mục “servers” và sau đó chọn “virtual directories”. Tại đây, bạn chọn máy chủ Exchange mà bạn muốn kiểm tra từ menu “Select server”. Ví dụ, chọn EX01-2016.exoip.local.

Nhấp đúp vào từng mục để tìm các URL nội bộ và bên ngoài. Lưu ý rằng bạn sẽ không thể tìm thấy URL của Autodiscover (Default Web Site) trong EAC, mà phải sử dụng script GetExchangeURLs.ps1 hoặc lệnh PowerShell để tìm URL này.

Tìm các URL của Exchange Server bằng Exchange Admin Center (EAC)

Đối với Outlook Anywhere, bạn cần kiểm tra ở một vị trí khác trong EAC. Vào mục “servers”, chọn máy chủ và nhấp đúp vào tên của máy chủ Exchange.

Tìm các URL của Exchange Server bằng Exchange Admin Center (EAC)

Sau đó, bạn sẽ tìm thấy các URL nội bộ và bên ngoài của Outlook Anywhere, cùng với phương thức xác thực.

Tìm các URL của Exchange Server bằng Exchange Admin Center (EAC)

Sử dụng PowerShell và EAC là hai cách hiệu quả để kiểm tra và tìm các URL của Exchange Server. Cả hai phương pháp đều có ưu điểm riêng, tùy thuộc vào yêu cầu cụ thể mà bạn có thể chọn cách phù hợp nhất.

Bài viết liên quan:

Hướng dẫn cài đặt Exchange Server 2010 step by tep

Nguyễn Tiến Trường

Mình viết về những điều nhỏ nhặt trong cuộc sống, Viết về câu chuyện những ngày không có em