Topic Last Modified: 2009-02-25
The Microsoft Exchange Server Best Practices Analyzer examines the Internet Information Services (IIS) site that hosts the Microsoft-Server-ActiveSync virtual directory. As part of this examination, the Best Practices Analyzer determines whether content compression is enabled for Exchange ActiveSync.
If content compression is enabled, the Best Practices Analyzer retrieves the compression level that is used from the IIS 6 metabase. If content compression is not enabled or if content compression is set too high, the Best Practices Analyzer generates one of the following messages:
If content compression is not enabled
Compression is not enabled on ActiveSync Server <ServerName>. Since compression reduces required bandwidth, it is recommended that you turn compression on. |
If content compression is set too high
The Internet Information Services (IIS) compression level was higher than 3 on the server <ServerName>. This setting on ActiveSync websites in the organization can lead to reduced battery life of connecting devices. |
Exchange ActiveSync is a protocol that Exchange uses to synchronize mailboxes with mobile devices. This protocol is optimized to work over high-latency or low-bandwidth connections. Also, this protocol is designed for client computers that have lower amounts of memory, storage capacity, and processing power.
By using content compression, Exchange can optimize the amount of data that is sent between IIS and a mobile device. However, if the content compression level is set too high, the mobile device must perform additional work to uncompress the data. Therefore, the battery life on the device may be reduced.
To address this issue, modify the IIS metabase to set the content compression to a value of 3 or less.
To enable content compression on the Microsoft-Server-ActiveSync virtual directory-
Start the Exchange Management Shell.
-
At the shell prompt, run the following cmdlet.
Copy Code Set-ActiveSyncVirtualDirectory -Identity "contoso\microsoft-server-activesync" -CompressionEnabled:$true
-
Start the Internet Information Services (IIS) Manager MMC snap-in.
-
Right-click the computer object, point to All Tasks, and then click Backup/Restore Configuration.
-
Click Create Backup, type a name for the backup in the Configuration backup name box, click OK, and then click Close.
-
Right-click the computer, and then click Properties.
-
Click to select the Enable Direct Metabase Edit check box, and then click OK.
-
Start the IIS Metabase Explorer tool. To obtain this tool, see Internet Information Services (IIS) 6.0 Resource Kit Tools.
-
Expand the following path:
- LM
- W3SVC
- Filters
- Compression
- LM
-
Under Compression, click deflate.
-
In the details pane, modify the HcDynamicCompressionLevel parameter to set the level to 3 or less. This parameter may contain values from 0 (minimum compression) through 10 (maximum compression). To modify the value, right-click HcDynamicCompressionLevel, and then click Properties. Click the appropriate value, and then click OK.
-
Under Compression, click gzip.
-
In the details pane, modify the HcDynamicCompressionLevel parameter to set the level to 3 or less.
-
Exit IIS Metabase Explorer.
-
Reset IIS. To do this, run the iisreset /noforce command at a command prompt.
-
In the Internet Information Services (IIS) Manager snap-in, right-click the computer, click Properties, and then click to clear the Enable Direct Metabase Edit check box.
For More Information
For more information about Exchange ActiveSync cmdlets, see Exchange ActiveSync Cmdlets.