Change IIS Site Home Directory w/ Powershell

后端 未结 2 1653
暗喜
暗喜 2021-02-15 18:41

I can query the AD and find all the IIS sites and their virtual directories, now I need to be able to update those home directories and save the changes.

After I fetch t

2条回答
  •  孤独总比滥情好
    2021-02-15 19:19

    Ok, I tried this and it seems to work:

        $s.psbase.properties.path[0] = $siteConfig.path
        $s.psbase.CommitChanges()
    

    Is there a better cleaner way of handling this?

提交回复
热议问题