install exchange 2013 cu23 on Win2008 R2 SP1

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-exch13
在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-exch25.nipc.com.cn,nip-exch65.nipc.com.cn,nip-exch13.nipc.com.cn,localhost -PrivateKeyExportable $true

Set-Content -path "\\NIP-Exch13\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-Exch13\C$\Excertnew.cer

Import-ExchangeCertificate –Server nip-Exch13 -FileData ([Byte[]]$(Get-Content -Path "\\NIP-Exch13\C$\Excertnew.cer" -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Server NIP-Exch13 -Services "IIS,POP,IMAP,SMTP"

5)Configuring Outlook Anywhere

Get-OutlookAnywhere -Server NIP-Exch13 | Set-OutlookAnywhere -ExternalHostname mail.nip.com.cn -ExternalClientsRequireSsl:$true -ExternalClientAuthenticationMethod:Basic -InternalHostName nip-exch13.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-Exch13
-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-Exch13 -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-exch13       Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch13       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-exch13       Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch13       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 <Database ID>. To get a 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 <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To get a list of all Audit mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -AuditLog. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. To disable a Audit 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 <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>. It was running the command 'Remove-MailboxDatabase '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'.
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-exch13\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

image

 

install Windows6.1-KB2819745-x64-MultiPkg

 

.\Setup.exe /PrepareSchema /IacceptExchangeServerLicenseTerms

image


.\Setup.exe /PrepareAD /IacceptExchangeServerLicenseTerms

image


.\Setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

image

 

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

image

image

image

 

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-exch25.nipc.com.cn,nip-exch65.nipc.com.cn,nip-exch13.nipc.com.cn -PrivateKeyExportable $true

Set-Content -path "\\NIP-Exch13\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-Exch13\C$\Excertnew.cer

Import-ExchangeCertificate –Server NBIS-Exch01 -FileData ([Byte[]]$(Get-Content -Path " \\NIP-Exch13\C$\Excertnew.cer" -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Server NIP-Exch13 -Services "IIS,POP,IMAP,SMTP"

5)Configuring Outlook Anywhere

Get-OutlookAnywhere -Server NIP-Exch13 | Set-OutlookAnywhere -ExternalHostname mail.nip.com.cn -ExternalClientsRequireSsl:$true -ExternalClientAuthenticationMethod:Basic -InternalHostName nip-exch13.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-Exch13
-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-Exch13 -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-exch13       Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch13       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-exch13       Unlimited
Migration.8f3e7716-201... Migration.8f3e771... nip-exch13       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 <Database ID>. To get a

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 <Database ID>

-Archive. To get a list of all public folder mailboxes in this database, run the command

Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration

mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -

Arbitration. To get a list of all Audit mailboxes in this database, run the command Get-

Mailbox -Database <Database ID> -AuditLog. To disable a non-arbitration mailbox so that you

can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an

archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox

<Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox

database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. To disable a Audit

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 <parameters>. If this is the last server in the organization,

run the command Disable-Mailbox <Mailbox ID> -Arbitration -

DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans

should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan

ID> -Database <Database ID>. It was running the command 'Remove-MailboxDatabase

'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'.
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-exch13\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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章