-
Notifications
You must be signed in to change notification settings - Fork 0
/
03 - Configure Exchange.ps1
21 lines (16 loc) · 1.3 KB
/
03 - Configure Exchange.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$domainName = "exlab1.iwitl.com"
Add-Computer -DomainName $domainName
Restart-Computer
Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, 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-Tools, Telnet-Client
Restart-Computer
# Disable ESC
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
Stop-Process -Name Explorer
# Install
# https://www.microsoft.com/download/details.aspx?id=34992
# https://support.microsoft.com/kb/3151802
# https://technet.microsoft.com/en-us/library/jj907309(v=exchg.160).aspx
f:
.\setup.exe /mode:Install /role:Mailbox /OrganizationName:EXLAB /IacceptExchangeServerLicenseTerms
Restart-Computer