Pages

19 January 2017

Install the Microsoft Exchange 2013 Management Tools prerequisites on Windows 10 with PowerShell

Install the Microsoft Exchange 2013 Management Tools prerequisites on Windows 10:

IIS:
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerManagementTools
Enable-WindowsOptionalFeature -Online -FeatureName IIS-IIS6ManagementCompatibility
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Metabase
Enable-WindowsOptionalFeature -Online -FeatureName IIS-LegacySnapIn
.NET 3.5:
Write-Host "Installing .Net Framework 3.5, do not close this prompt..."
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:$LocalSource | Out-Null
$Result = Dism /online /Get-featureinfo /featurename:NetFx3
If($Result -contains "State : Enabled")
{
Write-Host "Install .Net Framework 3.5 successfully."
}
Else
{
Write-Host "Failed to install Install .Net Framework 3.5,please make sure the local source is correct." 
}
In case the above doesn't work, you can try:
DISM /Online /Enable-Feature /FeatureName:NetFx3

No comments:

Post a Comment