IIS (Internet Information Services) · Advanced IIS

Shared Configuration

In a web farm every server must have the same sites, pools and settings. Shared Configuration makes them all read one applicationHost.config.

Advanced 5 min Lesson 37 of 45Covers IIS 10 on Windows Server 2019/2022/2025 and Windows 10/11.
Before you start:Load Balancing with ARR
0/45 in IIS
On this page · 5 min · Advanced

Learning objectives#

  • Export IIS configuration with encryption keys
  • Enable shared configuration
  • Understand what is and isn’t shared
  • Plan content synchronisation

Explanation#

On the first server: server node → Shared Configuration → Export Configuration. Choose a UNC folder (\\fileserver\iisconfig) and an encryption key password. This writes applicationHost.config, administration.config and the keys.

On every server (including the first): tick Enable shared configuration, enter the same path, a user that can read it, then the key password. IIS restarts its services and now reads the configuration from the share.

Only configuration is shared. Website files must be copied separately (DFS Replication, Web Deploy, or a deployment pipeline that targets every server). Certificates are best handled with the Centralized Certificate Store.

Every change made in IIS Manager on any server is written to the share and seen by all — so treat it like production and back it up.

Step-by-step screens#

Drawings of IIS Manager in IIS 10 (Windows Server 2019/2022, Windows 10/11). The red numbers match the numbered actions under each picture; names on your computer will differ.

Loading pictures…

Code example: Export and enable from PowerShell#

PowerShellExport and enable from PowerShell Illustrative
Import-Module IISAdministration
$key = Read-Host 'Key password' -AsSecureString


# On the first server
Export-IISConfiguration -PhysicalPath '\\fileserver\iisconfig' -KeyEncryptionPassword $key


# On every server
$cred = Get-Credential 'CORP\svc-iis-config'
Enable-IISSharedConfig -PhysicalPath '\\fileserver\iisconfig' -KeyEncryptionPassword $key `
    -UserName $cred.UserName -Password $cred.GetNetworkCredential().SecurePassword
Get-IISSharedConfig
Expected output
Enabled = True
Physical Path = \fileserveriisconfig
UserName = CORPsvc-iis-config

This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.

Step-by-step explanation#

  1. Export writes the configuration files and encrypted keys to the share.
  2. Enable-IISSharedConfig switches a server to read from it.
  3. Get-IISSharedConfig confirms the setting.

Real-world use case#

A three-server farm behind a load balancer: an admin adds a new site once in IIS Manager and it appears on all three servers immediately.

Common mistakes#

Expecting files to be shared

Only configuration is shared; deploy site content to every server.

Share unavailable

If the share goes down, IIS can’t read its configuration. Use a highly available file share.

Best practices#

  • Highly available share
  • Dedicated low-privilege service account
  • Back up the shared folder
  • Combine with the Centralized Certificate Store

Remember this#

Export once, enable everywhere.

Config is shared; content is not.

Changes apply to all servers.

Practice exercise#

Your task: Show whether shared configuration is enabled on this server.

Show solution
PowerShell Illustrative
Get-IISSharedConfig

Mini quiz#

Shared Configuration quizMultiple choice Question 1 of 1

What does Shared Configuration share?

Score so far: 0/0

Want more? Practise all IIS MCQs · IIS interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.