您好,登錄后才能下訂單哦!
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 <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-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 <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-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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。