728x90

Create A Send Connector

The fresh exchange server installation will not have a connector send email to an internet email address. We need to create one to do so. Here are the how-to steps to create a send connector using the Exchange admin center. Login to Exchange Admin Center and goto MailflowàSend Connector. Click Add or + sign on top of the icons.

 

The New Send Connector wizard will open. Type a descriptive name and select Internet as type.

 

As we are going to send emails to internet users straight from the exchange server, we are going to select an MX record associated with the recipient domain and click Next.

 

Add address space, click + sign on the address space commands.

 

Type * in the FQDN column and click save.

 

Once the address space has been saved, click next.

 

On the Source Server, click + sign to add the only server we just installed.

 

Add the Exchange Server and click OK

 

We have completed Creating Send connector, click Finish to close the wizard.

 

Configure Virtual Directories

Exchange Server 2019 Installation and Configuration

We are going to configure virtual directories such as OWA, ActiveSync, and so on with the internal and external URLs using Exchange Management Shel. You can navigate to StartàMicrosoft Exchange Server from the Menu and right-click the Exchange Management shell and choose to run as Administrator to open elevated Shell to configure Virtual Directories.

 

The following script will set the virtual directories of each feature. We need to specify the Server_Name and FQDN variables relevant to our Exchange Server name and external domain name.

 $Server_name = "ex"
 $FQDN = "mail.mrigotechno.club"
 Get-OWAVirtualDirectory -Server $Server_name | Set-OWAVirtualDirectory -InternalURL "https://$($FQDN)/owa" -ExternalURL "https://$($FQDN)/owa"
 Get-ECPVirtualDirectory -Server $Server_name | Set-ECPVirtualDirectory -InternalURL "https://$($FQDN)/ecp" -ExternalURL   "https://$($FQDN)/ecp"
 Get-OABVirtualDirectory -Server $Server_name | Set-OABVirtualDirectory -InternalURL "https://$($FQDN)/oab" -ExternalURL   "https://$($FQDN)/oab"
 Get-ActiveSyncVirtualDirectory -Server $Server_name | Set-ActiveSyncVirtualDirectory -InternalURL "https://$($FQDN)/Microsoft-Server-ActiveSync" -ExternalURL "https://$($FQDN)/Microsoft-Server-ActiveSync"
 Get-WebServicesVirtualDirectory -Server $Server_name | Set-WebServicesVirtualDirectory -InternalURL "https://$($FQDN)/EWS/Exchange.asmx" -ExternalURL "https://$($FQDN)/EWS/Exchange.asmx"
 Get-MapiVirtualDirectory -Server $Server_name | Set-MapiVirtualDirectory -InternalURL "https://$($FQDN)/mapi" -ExternalURL https://$($FQDN)/mapi 

You would see the Exchange Management Shell as shown in the below out after you copy and paste the script to the EMS.

 

Configure Outlook Anywhere

To Outlook Clients access from internal and external networks, we need to configure Outlook anywhere from the Servers/Outlook Anywhere settings with the exchange hostname(FQDN) such as mail.comain.com. You can navigate to Outlook Anywhere settings, as shown in the steps on the image.

 

Click OK to the Warning to Negotiate client authentication.

 

Set Service Connection Point

Exchange Server 2019 Installation and Configuration

The next step is to set the Autodiscover internal URI for internal outlook clients to get the Autodiscover details from the active directory. The Autodiscover internal URI will set the Service Connection Point(SCP) on the Active Directory.

Set-ClientAccessService -Identity ex -AutodiscoverServiceInternalURI  https://mail.mrigotechno.club/Autodiscover/Autodiscover.xml
 

Rename default database and move database path

Move mailbox database path to separate disk for database and transactional log files to recover the database quickly in case of disk failure. I have mentioned C: drive where you can substitute with a relevant drive letter with the command below.

Get-MailboxDatabase -Server ex | Set-MailboxDatabase -Name MBX-DB-2019
Move-DatabasePath -Identity MBX-DB-2019 -EdbFilePath C:\ExchangeDatabases\MBX-DB-2019\MBX-DB-2019.EDB -LogFolderPath C:\ExchangeDatabases\MBX-DB-2019_Log
 

Install Certificate

We are going to create a Certificate Signing Request(CSR) on the Exchange Admin Center and install the certificate for the services like IIS, SMTP, and so on. Login to Exchange Admin Center and go to ServersàCertificate to create certificate signing request (CSR) file to generate a certificate from third-party Certification Authority (CA) like Verisign or GoDaddy.

The Certificate Signing certificate must be created by clicking the + sign on the Certificate tab.  Select “Create a request for a certificate from a Certification Authority” and click Next.

 

Type a friendly name of the certificate and click Next.

 

We are going to request a Subject Alternative Name (SAN) certificate, so leave the default and click Next.

 

The request has to be saved on the Exchange server, click browse and select the only exchange server and click ok.

 

The exchange server has been selected click Next.

 

We skip this page, and we are going to create a request with some names where we can specify names on the list. Click Next.

 

Select only the FQDN that we used on the virtual directories and Outlook Anywhere. As you know, we provided the name mail.mrigotechno.club, alongside we need to add the name for Autodiscover, the subject name will be Autodiscover.mrigotechno.club, remove other local hostnames.

 

The local hostnames are removed and added only FQDN And autodiscover hostnames, click Next.

 

Type information about your organization and click Next.

 

Save the request in a file, type the UNC path, and click Next.

 

The Certificate Request has been created and using the CSR file, and we need to generate a Certificate from a third-party certification authority. Once certificates are received, come back to the Certificate tab on the Exchange Admin Center and select the request entry and click Complete to apply the Certificate.

 

Type the UNC path of the certificate received from the CA and click ok.

 

The next step is to assign services to the certificate, open the certificate entry on the EAC, and check the hostnames.

 

Go to Services on the same window select the services you want this certificate to use IIS and SMTP are selected generally, but if you wish to use IMAP and POP to use the certificate or these services are enabled, select them and click Save.

 

Click Yes to the confirmation message, and you would see valid in the Certificate Status.

 

Conclusion

In this article, we have discussed how to Install Exchange Server 2019 using Graphical User Interface and configured the server using the Exchange Admin Center and Exchange Management Shell. In my other three-part article, I have demonstrated how to migrate Exchange Server 2013 to Exchange Server 2019. I have added the link to those articles below. If you are interested in knowing how to install Exchange Server using the Command line, that article covers the installation process. You may have some questions or feedback to share with me, please click the comments below and share your thoughts. I’m so happy to answer your questions.

728x90
728x90

Preface

In this article, we are going to immerse the installation of Exchange Server 2019 and configure some of the exchange components such as Virtual Directories, Outlook anywhere, etc. This article will cover how to Install and Configure Exchange Server 2019 using  GUI.

I have already created a three-part article for the Migrating Exchange server 2013 to Exchange Server 2019 Installation and Configuration covered in that. It was installed using the command line interface, and most of the admins prefer the Graphical User Interface method to Install and Configure Exchange Server. Having that in mind, I have created this new article for the Exchange admins using GUI. Even though we have demonstrated the Exchange Server 2019 installation in those article series, configuring the Exchange server in the new Exchange Organization is somewhat different from configuring Exchange Server in an existing organization.

Also, this article will cover a complete configuration for a necessary Exchange Server deployment. This article will assume you have a Domain Controller up and running on your network, and you are going to install the Exchange Server 2019 on the active directory environment. If you are doing this installation on no Domain controller installed on the network or Test network, I would recommend installing a domain controller using my other article before installing the Exchange Server 2019. I also recommend going through this Microsoft link if you want to know all the Active Directory schema changes when you install Exchange Server 2019 on your Active Directory environment. You are advised to go through the complete document before starting the installation that way, and you will not get stuck on any step when you are trying to do Install and Configuring Exchange Server 2019. We are going to do the following tasks on Installing and Configuring Exchange Server 2019.

  1. Install Exchange Server Pre-requisite
  2. Install Exchange Server 2019 using GUI
  3. Create new outbound send connector to send emails to internet email
  4. Configure Virtual Directories
  5. Configure Outlook Anywhere
  6. Set Service Connection Point
  7. Rename default database and move database path
  8. Install Certificate

Pre-requisite to Install and Configure Exchange Server

The Windows Server 2019 has to be prepared and installed with Exchange Server 2019 Pre-requisites installing the Exchange Servers binaries.

The following Windows Server packages need to be installed before installing Exchange 2019 Server

.NET Framework 4.8
Visual C++ Redistributable Package for Visual Studio 2013
Unified Communications Managed API 4.0
Windows feature

Install .NET Framework 4.8

The .Net Framework 4.8 is required to install as a prerequisite software package. The package needs to be downloaded from the link below.

https://go.microsoft.com/fwlink/?linkid=2088631

Exchange Server 2019 Installation and Configuration

Once the offline installer has been downloaded, right-click the package and run it as an administrator to install it on the server.

Check the license agreement checkbox and click install.

 

Click Finish to complete the installation.

 

Install Visual C++ Redistributable Package for Visual Studio 2013

The next pre-requisite to install on the server is Visual C++ redistributable package for visual studio 2013. You can download this package from the link below, choose the language that you are planning to install on the server.

https://support.microsoft.com/en-in/help/4032938/update-for-visual-c-2013-redistributable-package

Once the package has been downloaded, right-click the downloaded file and run as administrator.

Accept the license and click Install to install the package.

 

Click close when the install completes.

 

Install Unified Communications Managed API 4.0

The next pre-requisite package we are going to install on the server is Micrsft Unified Communications managed API 4.0 runtime setup. Download the package from the below link.

https://www.microsoft.com/en-us/download/details.aspx?id=34992

Once the package is downloaded, run it as an administrator to begin the installation. Click Next to continue.

 

Click Install to install the package and click Finish when the install is over.

 

Exchange Server 2019 Installation and Configuration

Install Windows Feature

The next pre-requisite is Windows Server features installation. Open a Powershell window as administrator and run the following commands once the installation of features is completed do a restart of the Windows Operating System.

Install-WindowsFeature Server-Media-Foundation, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS 
 

Install and Configure Exchange Server

Exchange Server 2019 Installation and Configuration

Open the Exchange server installation media and double click the setup.exe to start the installation. Select Connect to the Internet and check for update and click Next.

 

On the next screen, the installation wizard will try to download the updates If there is any from the Microsoft update server. Click Next to continue.

 

Go through the introduction and click next to continue the wizard.

 

Accept the license agreement and click next to continue.

 

Select Use Recommended Settings and click Next.

 

Select the server role, this demonstration for Exchange server Mailbox role, select Mailbox role, and the management tools checkbox will be automatically selected. Also, check Automatically install roles and features and click Next.

 

Select the Drive where the exchange server to be installed. In most cases, it would be on the Drive other than System Drive. I have left the installation path as-is for this demonstration. But you can choose a drive and path as you want.

 

Specify an Organization name. In this case, I leave it to default. Click Next.

 

If you are planning to use some third party Malware Protection, you can select to disable Malware Protection. If you want to use the Exchange server inbuilt one, select Disable malware protection to No and click Next.

 

The install wizard will start Readiness Check, wait for that to complete and check if you have received an error message.

 

If there is any error, act on that error and rectify that and then restart the Exchange Server Installation. If you have followed these installation steps, most probably, you won’t have any error. Click Install to start the installation.

 

Exchange Server 2019 Installation and Configuration

The Setup will start, and you can monitor the progress along the way, it would take some time to complete. Be patient and wait for the setup to complete.

 

The Setup is in progress and may take some more time to complete.

 

Exchange Server Setup is complete, select launch Exchange Administration Center, and click Finish.

 

Exchange Admin Center or Exchange Control panel is the web console where is Exchange Server is configured or managed. This console can be accessed initially with the web URL https://localhost/ecp

The login screen is shown in the image below, where the administrator can log in to get the full admin access console with username as domain\username and password.

 
728x90
728x90
  1. Exchange 관리 센터 UI 또는 Exchange Powershell로 데이터베이스가 탑재되지 않는 증상 확인
  2. Eseutil을 이용하여 데이터베이스 상태 확인

Eseutil.exe /mh <데이터베이스 파일>

:) eseutil.exe /mh E:\maildb\database04.edb

  1. 데이터 베이스 상태 확인 시 ‘Dirty Shutdown’으로 확인됨.
  2. Dirty Shutdown’ 상태 ‘Clean Shutdown’ 상태로 변경하기 위한 Eseutil 하드 복구 진행

Eseutil.exe /p <데이터베이스 파일>

Eseutil.exe /p e:\maildb\database04.edb

  1. 복구 진행 완료 후 2변 명령으로 ‘Clean Shutdown’ 상태로 변경되는지 확인.

사서함 데이터베이스 관련 로그는 다른 위치 또는 삭제 후 탑재(Mount) 진행

 

  1. Exchange 서버 Queue 증가 및 시스템 성능 저하로 인한 Queue 파일 초기화 작업 방법
  1. Microsoft Exchange Transport Service 중지
  2. Queue 파일 및 Queue 로그파일 삭제

C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue 폴더 내의 모든 파일 삭제

  1. Microsoft Exchange Transport Service 시작
  2. Queue 파일 새로 생성되는 것 확인

C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue 폴더에 mail.que 파일 및 로그파일 새로 생성되는지 확인

 

끝.

728x90
728x90

Exchange 2016: Deny External Access to EAC

 

Security has been the key with this growing cyber-attack world. So my customer asked to block external ECP access. Here is how we implemented this.

We have following options and my views on it.

  • Block at the url https://url/ECP at the Firewall or Load Balancer level

This sounds a good option except not every firewall or load balancer do it. We also need to involve network team.

  • Block the AdminEnabled in the ECP Virtual Directory property.

This is new feature but this block internal access as well. So not a nice option. The following cmdlet can be used to apply this.

Set-ECPVirtualDirectory -Identity “Servername\ecp (default web site)” -AdminEnabled $false

 

  • Block the AdminEnabled in the ECP Virtual Directory property with new server which will be used for ECP access.

Adding another server which will use some hardware resources in virtualized setup or a new hardware server + Windows and Exchange License cost to access ECP is never a recommendation. At the same time, it gives you full isolation.

  • Remove External URL on the ECP Virtual Directory

Removing Externalurl does not stop the external access unless we also block OWA. So this is not an option.

  • Allow only LAN IP Address range on the ECP Virtual Directory from IIS Manager.

Allow only the LAN IP address range sounds a reasonable option to me. Here is how we configure this.

Step 1. Login to your Exchange server and Open IIS Manager

Step 2. Browse down to “Default Web Site” à ECP

 

Step 3. Double click on “IP Address and Domain Restrictions”

 

Step 4. Click on “Add Allow Entry”

 

Step 5. Add IP or Range then click Ok

 

It is not done yet. So have some patience

Step 6. Click on “Edit Feature Settings”

 

Step 7. In “Access for Unspecified clients” Select Deny and in “Deny Action Type” we can “Not Found” or any other option.

 

Step 8. Do the IIS reset.

Now we are done. Only the assigned IP Range users can see it.

 

Are you concerned if your users can still access options which used to take the user to /ecp vdir to get the out of office and other options?

This has changed in Exchange 2016. In Exchange 2016 Options will use the following url and not https://url/ECP

So if you are on Exchange 2013 then do not follow this blog until you see the users option url change in Exchange 2013.

In Exchange 2016 Options will take us to the following url.

https://mail.domain.com/owa/#path=/options/mail

 

728x90
728x90

Client

Exchange 2010

Exchange 2013

Exchange 2016

Exchange 2019

Outlook 2007

+

+ (w/SP3)

-

-

Outlook 2010

+

+ (w/SP1)

+ (with KB2965295)

+ (with KB2965295)

Outlook 2011 for Mac

+

+

+

+

Outlook 2013

+

+

+

+

Outlook 2016

+

+

+

+

Outlook 2019

+

+

+

+

Outlook 2016 for Mac

+

+

+

+

Entourage 2008 EWS

+

+

-

-

Mail (Mac OS X v10.7 Lion)

+

-

-

-

Mail (Mac OS X v10.8 Mountain Lion)

+

+

+

+

Mail (Mac OS X v10.9 Mavericks)

+

+

+

+

Mail (Mac OS X v10.10 Yosemite)

+

+

+

+

Mail (Mac OS X v10.11 El Capitan)

+

+

+

+

728x90
728x90

Get-ActiveExchangeUsers.ps1


https://ingogegenwarth.wordpress.com/2016/05/09/get-activeexchangeusers-2-0/




728x90
728x90

Get-MailboxStatistics cmdlet을 이용하여  Exchange 사서함 사용량 체크 후 메일로 발송 하는 방법에 대하여 알아 보도록 하겠습니다.

아래 내용은 Get-MailboxStatistics cmdlet을 이용하여 각각의 사서함의 사용량을 체크 후 CSV파일로 저장을 하여 저장된 파일을 SMTP를 사용하여 메일 서버관리자 또는 사용량의 관리가 필요한 사람에게 메일을 발송하는 스크립입니다.

#파일 저장시 파일 이름에 날짜를 찍기 위한 변수  
$date = get-date -Format yyyy-MM-dd
Get-MailboxStatistics -database "체크할데이터베이스" | ft displayname, totalitemsize, itemcount | Out-File -FilePath c:\mailbox\mailbox_$date.csv
$FromAddress = "발송자의메일주소"
$ToAddress = "받는사람의메일주소"
$MessageSubject = "$date Exchange2010 사서함 사용량 입니다."
$MessageBody = "$date Exchange2010 사서함 사용량 입니다. "
$SendingServer = "보내는메일서버주소"$SMTPMessage = New-Object System.Net.Mail.MailMessage $FromAddress, $ToAddress,
$MessageSubject, $MessageBody
$i = "get-date"
$Attachment = New-Object Net.Mail.Attachment("c:\mailbox\mailbox_$date.csv")
$SMTPMessage.Attachments.Add($Attachment)$SMTPClient = New-Object System.Net.Mail.SMTPClient $SendingServer
$SMTPClient.Send($SMTPMessage)

지정한 관리자의 메일로 사용량이 나와있는 CSV파일이 첨부되어 발송된 부분의 확인이 가능합니다.



해당 스크립트의 경우 Exchange powershell을 이용하여 직접 실행 및 아래와 같이 Bat파일로 해당 스크립트를 호출하여 예약된 작업으로 특정 시간에 실행이 되도록 실행이 가능 합니다.

PowerShell.exe -command ". 'c:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; C:\mail-out.ps1"


여기까지 Exchange 사서함 사용량 메일로 발송하는 방법에 대하여 알아 보았습니다.

728x90
728x90

New-Mailbox Cmdlet을 이용하여 대량으로 사용자 계정 등록하기에 대하여 알아 보도록 하겠습니다.

New-mailbox 를 통하여 계정을 하나하나 생성이 가능하지만 아래와 같은 스크립트와 생성이 필요한 사용자의 계정정보가 포함됨 CSV파일을 임포트 하여 대량으로 계정의 등록이 가능합니다.


임포트할 CSV 파일은 아래와 같이 만들어 줍니다.



변수 $password 선언은 패스워드의 경우 암호화 처리가 되어 저장이 됨으로 변수를 선언하여 직접 입력 받도록  설정합니다.


$password = Read-Host "Enter password" -AsSecureString

$DB = import-csv $args[0]

foreach ($i in $db)

{

New-Mailbox -UserPrincipalName ($i.id + "@test-domain.co.kr") -Alias $i.Alias -Database "Mailbox Database 1602724241" -Name $i.Name -OrganizationalUnit Users -Password $password -FirstName $i.FirstName -LastName $i.LastName -DisplayName $i.DisplayName -ResetPasswordOnNextLogon $false

}



이상으로  New-Mailbox Cmdlet을 이용한 대량 사용자 계정 등록하기에 대하여 알아 보았습니다.

728x90
728x90

Exchange mail 송수신 내역을 메일로 발송하는 방법에 대하여 알아 보도록 하겠습니다.

메일서버의 운영중 메일서버의 전체 사용량의 확인 및 특정 사용자의 메일 송수신 카운트를 집계하는 스크립트이며 특정 기간동안에 송수신한 메일의 수를 집계하여 각각의 사용자의 메일 사용량을 확인 할 수 있습니다.

# 각각의 로그에 대한 가져오기 시작 날짜 설정
$Start = (get-date -Date "2010-09-01" -Hour 00 -Minute 00 -Second 00)

# 각각의 로그에 대한 가져오기 끝 날짜 설정
$End = (get-date -Date "2010-09-30" -Hour 23 -Minute 59 -Second 59)

# CSV파일 저장시 파일 이름에 날짜를 찍기 위한 변수   
$date = get-date -Format yyyy-MM-dd

# 선언한 배열에 결과를 저장 
$Results = @()

# CAS01 서버에서 보낸 메시지 가져오기  
$Send = Get-MessageTrackingLog -Server cas01 -Start $Start -End $End -resultsize unlimited | Where { $_.EventID -eq 'Send' -or $_.EventID -eq 'Deliver' }

# CAS01 서버에서 받은 메시지 가져오기 
$Received = Get-MessageTrackingLog -Server cas01 -Start $Start -End $End -resultsize unlimited | Where { $_.EventID -eq 'Receive' -or $_.EventID -eq 'TRANSFER' }

# 검색할 사서함의 호출
$Mailboxes = Get-Mailbox

# 카운터에 대한 진행 표시줄
$Total = $Mailboxes.Count
$Count = 1

# 각각의 사서함의 통계를 내기위한 루프문 
$Mailboxes | Sort-Object DisplayName | ForEach-Object {
 # 업데이트
 $PercentComplete = $Count / $Total * 100
 Write-Progress -Activity "Message Tracking Log Search" -Status "Processing mailboxes" -percentComplete $PercentComplete

 # 출력물의 이름에 대한 각각의 개체 이름 표시
 $Stats = "" | Select-Object Name,Send,Received

 # 사서함의 이메일 주소 
 $Email = $_.WindowsEmailAddress.ToString()

 # 사서함 개체의 이름 속성 표시
 $Stats.Name = $_.DisplayName

 # 보낸 메시지 속성 개수 카운트
 $Stats.Send = ($Send | Where-Object { ($_.EventId -eq "Send" -or $_.EventID -eq "Deliver") -and ($_.Sender -eq $email) }).Count

 # 받은 메시지 속성 개수 카운트
 $Stats.Received = ($Received | Where-Object { ($_.EventId -eq "RECEIVE") -and ($_.Recipients -match $email) }).Count

 # 배열 검색 결과에 해당 사서함에 대한 통계를 추가
 $Results += $Stats

 # 카운터 값에 + 1 
 $Count += 1
}

# 출력 결과를 UTF-8로 인코딩 하여 C:\send\send_receive_log-$date.csv 경로에 CSV파일로 저장
$Results | Export-CSV C:\send\send_receive_log-$date.csv -NoType -Encoding UTF8

# 메일 발송 하기
$FromAddress = "보내는메일주소"
$ToAddress = "받는메일주소"
$MessageSubject = "$date Exchange2010 송수신 통계 내역 입니다."
$MessageBody = "$date Exchange2010 송수신 통계 내역 입니다."
$SendingServer = "보내는메일서버이름"
$SMTPMessage = New-Object System.Net.Mail.MailMessage $FromAddress, $ToAddress, 
$MessageSubject, $MessageBody
$i = "get-date"
$Attachment = New-Object Net.Mail.Attachment("C:\send\send_receive_log-$date.csv")
$SMTPMessage.Attachments.Add($Attachment)
$SMTPClient = New-Object System.Net.Mail.SMTPClient $SendingServer
$SMTPClient.Send($SMTPMessage)


지정한 관리자의 메일로 사용량이 나와있는 CSV파일이 첨부되어 발송된 부분의 확인이 가능합니다.



해당 스크립트의 경우 Exchange powershell을 이용하여 직접 실행 및 아래와 같이 Bat파일로 해당 스크립트를 호출하여 예약된 작업으로 특정 시간에 실행이 되도록 실행이 가능 합니다.

PowerShell.exe -command ". 'c:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; C:\send_log.ps1"


여기까지 Exchange 송수신 내역 메일로 발송하는 방법에 대하여 알아 보았습니다.

728x90
728x90

Search-Mailbox -Identity tmkim -SearchQuery 'from:sojuhyang@gmail.com' -TargetMailbox administra

tor -TargetFolder Searchlogs -LogLevel Full -LogOnly


Search-Mailbox -Identity tmkim -SearchQuery 'Subject:솟아나라대한민국' -TargetMailbox administra

tor -TargetFolder Searchlogs -LogLevel Full -LogOnly

728x90

+ Recent posts