1
IIS6の物理フォルダで 'ディレクトリブラウジング'を有効にするには、powershellスクリプトが必要です。重要な点は、変更したいフォルダが別の物理フォルダのサブフォルダであることです。いずれのフォルダも「仮想ディレクトリ」ではありません。Powershell - IIS6の物理フォルダで 'ディレクトリブラウジング'を有効にする
私は以下を試みましたが、DirectoryEntryは空です。私はそれがフォルダが "仮想ディレクトリ"ではないと仮定します。
$oDir = New-Object System.DirectoryServices.DirectoryEntry("IIS://localhost/W3SVC/1/Root/Test/Upgrade")
# Loop thru all even though there should only be one...
foreach ($oDirEntry in $oDir)
{
Write-Host "Enabling Directory Browsing on IIS folder [" $oDirEntry.Name "]."
$oDirEntry.put("EnableDirBrowsing",$true)
$oDirEntry.psbase.CommitChanges()
}