【问题标题】:New-IISSite new site not visible in IIS ManagerNew-IISSite 新站点在 IIS 管理器中不可见
【发布时间】:2018-10-22 14:39:33
【问题描述】:

我正在使用 Powershell 在我的 Windows 10 机器上创建一个新站点:

New-IISSite -Name "mysite.local" -BindingInformation "*:80:mysite.local" -PhysicalPath "c:\inetpub\wwwroot\mysite.local"

这很有效,当我调用 Get-IISSite 时,它会列出我的新站点。

但是在 IIS 管理器 中,该站点没有列出,并且 applicationHost.config 不包含它的条目。我错过了什么?

【问题讨论】:

  • 很确定你需要刷新

标签: powershell iis


【解决方案1】:

当发出 Start-IISCommitDelay 命令但没有相应的 Stop-IISCommitDelay 时,对 IIS 配置的所有后续修改都不会提交到 applicationHost.config

这将关闭打开的事务:

Stop-IISCommitDelay

【讨论】:

    猜你喜欢
    • 2022-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-09-28
    • 1970-01-01
    • 2017-10-28
    • 2014-12-26
    • 2011-06-21
    相关资源
    最近更新 更多