install exchange 2013 cu23 on
1.1 Exchange server 2013 服务器的部署与配置
在windows server 2012下安装Exchange 2013:
1) 系统组件准备(在Windows Server 2012 PowerShell中执行如下命令)
Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, Web-Mgmt-Console, 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 -Restart
nip-exch23
在Windows Server 2008 R2 PowerShell中执行如下命令
powershell:
Import-Module ServerManager
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, 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-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, RSAT-ADDS -Restart
Start-BitsTransfer -Source http://download.microsoft.com/download/2/C/4/2C47A5C1-A1F3-4843-B9FE-84C0032C61EC/UcmaRuntimeSetup.exe -Destination c:\temp
c:\temp\UcmaRuntimeSetup.exe /q
install Visual C++ 2013 Redistributable Package
install Windows6.1-KB974405-x64.msu
install Windows6.1-KB2819745-x64-MultiPkg
.\Setup.exe /PrepareSchema /IacceptExchangeServerLicenseTerms
.\Setup.exe /PrepareAD /IacceptExchangeServerLicenseTerms
.\Setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms
mkdir C:\Exchange\v15\MDB\DBFiles
mkdir C:\Exchange\v15\MDB\LogFiles
.\Setup.exe /Mode:Install /Roles:Mailbox,ClientAccess /Mdbname:MDB13 /DbFilePath:C:\Exchange\v15\MDB\DBFiles\MDB13.edb /LogFolderPath:C:\Exchange\v15\MDB\LogFiles /DomainController:nip-dc01 /InstallWindowsComponents /IAcceptExchangeServerLicenseTerms
set-exchangeserver -Identity 'NIP-EXCH13' -ProductKey 'CPJFG-C9D94-J7F4K-T9Q48-FWKP7'
4) Configuring SSL certificates
$Data = New-ExchangeCertificate -FriendlyName "NIP Exchange Certificate" -GenerateRequest -SubjectName "c=CN, o=NIP, cn=mail.nip.com.cn" -DomainName mail.nip.com.cn,autodiscover.nip.com.cn,mx1.nip.com.cn,exchange.nip.com.cn,nip-exch08.nipc.com.cn,nip-exch35.nipc.com.cn,nip-exch75.nipc.com.cn,nip-exch23.nipc.com.cn,localhost -PrivateKeyExportable $true
Set-Content -path "\\NIP-Exch23\C$\SSLCertRequest.req" -Value $Data
You can use the contents of the SSLCertRequest.req file to request an SSL certificate from a certificate authority (CA),open web: http://192.168.20.17/Certsrv To Request an SSL Certificate and save to \\NIP-Exch23\C$\Excertnew.cer
Import-ExchangeCertificate -Server nip-Exch23 -FileData ([Byte[]]$(Get-Content -Path "\\NIP-Exch23\C$\Excertnew.cer" -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Server NIP-Exch23 -Services "IIS,POP,IMAP,SMTP"
5)Configuring Outlook Anywhere
Get-OutlookAnywhere -Server NIP-Exch23 | Set-OutlookAnywhere -ExternalHostname mail.nip.com.cn -ExternalClientsRequireSsl:$true -ExternalClientAuthenticationMethod:Basic -InternalHostName nip-exch23.nipc.com.cn -InternalClientsRequireSsl:$true -InternalClientAuthenticationMethod:Basic
6)Enabling MapiHttp
MapiHttp is the new protocol for Outlook that was introduced in Exchange 2013 SP1. For Outlook, you need to use Outlook 2013 SP1 as well,To enable MapiHttp for Exchange 2013 SP1:
Set-OrganizationConfig -MapiHttpEnabled $true
that it can take up to three hours for the changes to take effect
Enable imap4 and pop3
Set-ADServerSettings -PreferredServer "nip-dc01.nipc.com.cn"
Set-ExchangeServer -Identity NIP-Exch23
-StaticGlobalCatalogs "nip-dc01.nipc.com.cn"
-StaticDomainControllers "nip-dc01.nipc.com.cn,NIP-DC05.nipc.com.cn"
-StaticConfigDomainController "NIP-DC01.nipc.com.cn"
get-exchangeserver -identity NIP-Exch23 -status | fl current,static
get-mailbox -database 'Mailbox Database 0650590826'
Get-Mailbox -Database "MDB01" -Arbitration | New-MoveRequest -TargetDatabase "MDB25"
search-mailbox -identity username -deletecontent
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
SystemMailbox{bb558c35... SystemMailbox{bb5... nip-exch23 Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch23 300 MB (314,572,800 bytes)
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -PublicFolder
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Archive
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
SystemMailbox{bb558c35... SystemMailbox{bb5... nip-exch23 Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch23 300 MB (314,572,800 bytes)
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration | Disable-Mailbox -Arbitration -DisableArbitrationMailboxWithOABsAllowed
Error:
Setup can't continue with the uninstall because the powershell (10408) has open files. Close the process, and then restart Setup.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.ProcessNeedsToBeClosedOnUninstall.aspx
Error:
Uninstall can't continue. Errors:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes, Audit mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.UnwillingToRemoveMailboxDatabase.aspx
Warning:
There are messages waiting in the following queues: "nip-exch23\Shadow\3". If you proceed with the removal of Exchange Server, data loss may result.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.MessagesInQueue.aspx
1) 系统组件准备:
powershell:
Import-Module ServerManager
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, 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-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, RSAT-ADDS -Restart
2) 软件准备:
Start-BitsTransfer -Source http://download.microsoft.com/download/2/C/4/2C47A5C1-A1F3-4843-B9FE-84C0032C61EC/UcmaRuntimeSetup.exe -Destination c:\temp
c:\temp\UcmaRuntimeSetup.exe /q
install Windows6.1-KB2819745-x64-MultiPkg
.\Setup.exe /PrepareSchema /IacceptExchangeServerLicenseTerms
.\Setup.exe /PrepareAD /IacceptExchangeServerLicenseTerms
.\Setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms
mkdir C:\Exchange\v15\MDB\DBFiles
mkdir C:\Exchange\v15\MDB\LogFiles
.\Setup.exe /Mode:Install /Roles:Mailbox,ClientAccess /Mdbname:MDB13 /DbFilePath:C:\Exchange\v15\MDB\DBFiles\MDB13.edb /LogFolderPath:C:\Exchange\v15\MDB\LogFiles /DomainController:nip-dc01 /InstallWindowsComponents /IAcceptExchangeServerLicenseTerms
set-exchangeserver -Identity 'NIP-EXCH13' -ProductKey 'CPJFG-C9D94-J7F4K-T9Q48-FWKP7'
4) Configuring SSL certificates
$Data = New-ExchangeCertificate -FriendlyName "NIP SSL Certificate" -GenerateRequest -SubjectName "c=CN, o=NIP, cn=mail.nip.com.cn" -DomainName mail.nip.com.cn,autodiscover.nip.com.cn,mx1.nip.com.cn,exchange.nip.com.cn,nip-exch08.nipc.com.cn,nip-exch35.nipc.com.cn,nip-exch75.nipc.com.cn,nip-exch23.nipc.com.cn -PrivateKeyExportable $true
Set-Content -path "\\NIP-Exch23\C$\SSLCertRequest.req" -Value $Data
You can use the contents of the SSLCertRequest.req file to request an SSL certificate from a certificate authority (CA),open web: http://192.168.20.17/Certsrv To Request an SSL Certificate and save to \\NIP-Exch23\C$\Excertnew.cer
Import-ExchangeCertificate -Server NBIS-Exch01 -FileData ([Byte[]]$(Get-Content -Path " \\NIP-Exch23\C$\Excertnew.cer" -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Server NIP-Exch23 -Services "IIS,POP,IMAP,SMTP"
5)Configuring Outlook Anywhere
Get-OutlookAnywhere -Server NIP-Exch23 | Set-OutlookAnywhere -ExternalHostname mail.nip.com.cn -ExternalClientsRequireSsl:$true -ExternalClientAuthenticationMethod:Basic -InternalHostName nip-exch23.nipc.com.cn -InternalClientsRequireSsl:$true -InternalClientAuthenticationMethod:Basic
6)Enabling MapiHttp
MapiHttp is the new protocol for Outlook that was introduced in Exchange 2013 SP1. For Outlook, you need to use Outlook 2013 SP1 as well,To enable MapiHttp for Exchange 2013 SP1:
Set-OrganizationConfig -MapiHttpEnabled $true
that it can take up to three hours for the changes to take effect
Enable imap4 and pop3
Set-ADServerSettings -PreferredServer "nip-dc01.nipc.com.cn"
Set-ExchangeServer -Identity NIP-Exch23
-StaticGlobalCatalogs "nip-dc01.nipc.com.cn"
-StaticDomainControllers "nip-dc01.nipc.com.cn,NIP-DC05.nipc.com.cn"
-StaticConfigDomainController "NIP-DC01.nipc.com.cn"
get-exchangeserver -identity NIP-Exch23 -status | fl current,static
get-mailbox -database 'Mailbox Database 0650590826'
Get-Mailbox -Database "MDB01" -Arbitration | New-MoveRequest -TargetDatabase "MDB25"
search-mailbox -identity username -deletecontent
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
SystemMailbox{bb558c35... SystemMailbox{bb5... nip-exch23 Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch23 300 MB (314,572,800 bytes)
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -PublicFolder
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Archive
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
SystemMailbox{bb558c35... SystemMailbox{bb5... nip-exch23 Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch23 300 MB (314,572,800 bytes)
[PS] C:\Windows\system32>Get-Mailbox -Database mdb13 -Arbitration | Disable-Mailbox -
Arbitration -DisableArbitrationMail
boxWithOABsAllowed
Error:
Setup can't continue with the uninstall because the powershell (10408) has open files. Close
the process, and then restart Setup.
For more information, visit: http://technet.microsoft.com/library
(EXCHG.150)/ms.exch.setupreadiness.ProcessNeedsToBeClosedOnUninstall.aspx
Error:
Uninstall can't continue. Errors:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes,
public folder mailboxes or arbitration mailboxes, Audit mailboxes. To get a list of all
mailboxes in this database, run the command Get-Mailbox -Database
list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list
of archive mailboxes in this database, run the command Get-Mailbox -Database
-Archive. To get a list of all public folder mailboxes in this database, run the command
Get-Mailbox -Database
mailboxes in this database, run the command Get-Mailbox -Database
Arbitration. To get a list of all Audit mailboxes in this database, run the command Get-
Mailbox -Database
can delete the mailbox database, run the command Disable-Mailbox
archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox
database, run the command Disable-Mailbox
mailbox so that you can delete the mailbox database, run the command Get-Mailbox -AuditLog |
Disable-Mailbox. Arbitration mailboxes should be moved to another server; to do this, run
the command New-MoveRequest
run the command Disable-Mailbox
DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans
should be moved to another server; to do this, run the command Set-MailboxPlan ID> -Database 'CN=MDB13,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=nipc,DC=com,DC=cn' -whatif'. (EXCHG.150)/ms.exch.setupreadiness.UnwillingToRemoveMailboxDatabase.aspx Warning: with the removal of Exchange Server, data loss may result. (EXCHG.150)/ms.exch.setupreadiness.MessagesInQueue.aspx
For more information, visit: http://technet.microsoft.com/library
There are messages waiting in the following queues: "nip-exch23\Shadow\3". If you proceed
For more information, visit: http://technet.microsoft.com/library