关于 IIS 的 Management Service Delegation 配置 备份

在MSDN没找到关于使用APPCMD备份IIS的"Management Service Delegation"模块配置命令。

到IIS的配置文件存放目录下,几番搜索,查到%windir%system32inetsrvconfigadministration.config里,有我想要备份的东西。

在locationsystem.webServer这整个节点。

这个节点下的配置,是CI自动部署/VS发布 时,对IIS网站发布的相关权限配置,常用于测试环境。

在服务器迁移时,如果没有备份,需要重新配置,尤为麻烦。

现在有了这种轻松的办法。

暂停新旧服务器的IIS(旧服务器不是必须暂停,只是建议)。

在旧服务器上复制这个location节点下的system.webServer整个节点,到新服务器上粘贴到location节点内最下方。

保存后,启动新服务器IIS,在"Management Service Delegation"模块就可以看到配置信息了。

原文地址:https://www.cnblogs.com/VAllen/p/Management-Service-Delegation-Backup-Without-APPCMD.html