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.
On this page · 5 min · Advanced
On this page
- Learning objectives
- Explanation
- Step-by-step screens
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Advanced
- Updated
- Nov 26, 2026
Related tutorials
Interview questions
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#
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
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#
- Export writes the configuration files and encrypted keys to the share.
- Enable-IISSharedConfig switches a server to read from it.
- 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#
Only configuration is shared; deploy site content to every server.
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
Get-IISSharedConfig
Mini quiz#
What does Shared Configuration share?
Want more? Practise all IIS MCQs · IIS interview questions
My notes#
Saved in this browser.