

To apply all mitigations without MSI install \ExchangeMitigations.ps1 -FullPathToMSI "FullPathToMSI" -WebSiteNames "Default Web Site" -ApplyAllMitigations To apply all mitigations with MSI install Script requires PowerShell 3.0 and later and must be executed from an elevated PowerShell Session. You must uninstall the URL Rewrite module and reinstall the correct version. If there is a mismatch between the URL Rewrite module and IIS version, ExchangeMitigations.ps1 will not apply the mitigation for CVE-2021-26855.


Installing URL Rewrite version 2.1 on IIS versions 8.5 and lower may cause IIS and Exchange to become unstable. This should only be used as a temporary mitigation until your Exchange Servers can be fully patched, recommended guidance is to apply all of the mitigations at once.įor this script to work you must have the IIS URL Rewrite Module installed which can be done via this script using the -FullPathToMSI parameter.įor IIS 10 and higher URL Rewrite Module 2.1 must be installed, you can download version 2.1 here:įor IIS 8.5 and lower Rewrite Module 2.0 must be installed, you can download version 2.0 here: This script contains 4 mitigations to help address the following vulnerabilities:įor more information on each mitigation please visit Instead, my local PC tries to access '' which fails since it's only accessible from the IIS sever machine.Download the latest release: ExchangeMitigations.ps1 On my local PC, I'd like to enter: '' and see the ethernet switch login page. I then created a reverse proxy rule in IIS, which generates the following web.config file The computer I'm accessing everything from is at 192.168.1.50. Note that the virtual web server has 2 NIC's, one for each subnet. I've create a simple website with a few pages as well - this all works correctly. My 'hosts' file contains the correct DNS mappings on all machines and using a browser directly these mappings all work. In ARR -> Server Proxy Settings, 'Enable Proxy' is set with all default values. I've set up '' on a virtual Windows 10 machine with IIS, ARR and URL rewrite installed. IIS server, it redirects the client browser. Using ARR and URL rewrite I should be able to set up Reverse Proxy to make this work. However, instead of rewriting and accessing the internal server through the I'm trying to access an internal web server (managed ethernet switch) via an IIS server.
