Change IIS Site Home Directory w/ Powershell
问题 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 the directory entry I can display the site path using $site.Path , however setting it doesn't seem to have any effect. It never changes the actual stored path. I have tried $site.Path = <new path> and $site.Put( "Path", <new path> ) but neither have these seem to be affecting the stored path. $site = $iis.psbase.children |