I'm trying to setup windows 2012, IIS8 shared configuration. That is two IIS servers share the same configuration file which is stored on a network share.
I've setup a share and granted userA "full control" to the share. I've also granted the userA account "modify" permission to the file security.
I then ran the following VB script:
Set adminManager = WScript.CreateObject("Microsoft.ApplicationHost.WritableAdminManager") adminManager.CommitPath = "MACHINE/REDIRECTION" Set configurationRedirection = adminManager.GetAdminSection( "configurationRedirection", "MACHINE/REDIRECTION" ) configurationRedirection.Properties.Item( "enabled" ).Value = True configurationRedirection.Properties.Item( "path" ).Value = "\\server\iis-config" configurationRedirection.Properties.Item( "userName" ).Value = "ourdomain\userA" configurationRedirection.Properties.Item( "password" ).Value= "password" adminManager.CommitChanges
When I try and access the server via IIS Manager I get the following error:
There was an error while performing this operation. Details: Filename: MACHINE/WEBROOT/APPHOST Error: Cannot read configuration file due to insufficient permissions
What am I doing wrong? How can I get this to work?