Created
May 17, 2013 09:20
-
-
Save stack72/5597978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host('Enabling Dynamic Compression in IIS') | |
Import-Module ServerManager | |
Add-WindowsFeature Web-Dyn-Compression | |
Write-Host("Adding dynamic compression types") | |
$compressions= @( | |
@{name ='dynamictypes'; mimeType='application/json'; enabled='True'} | |
#Add more here in an array declaration of its own | |
) | |
foreach ($compression in $compressions){ | |
Add-Webconfiguration -Filter 'system.webServer/httpCompression/dynamictypes' -Value $compression | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment