|
|
1
2
如果您想使用相同的代码在iis6和iis7上创建网站(我怀疑是使用
或者,可以在Windows 2008和Windows 2008R2上使用命令行(以管理员身份运行): Windows 2008/2008R2-
Windows 2008 R2-
import-module ServerManager add-windowsfeature Web-Mgt-Compat -includeallsubfeature |
|
|
2
-4
最后,我创建了两个单独的类来管理IIs6和IIs7.5。 而且工作正常。 |