IIS将应用程序更改为PowerShell中的虚拟目录
试图在这里编写脚本来将所有应用程序更改为虚拟目录。 我使用Powershell,但是我的技能有点弱。 我使用正确的工具吗? 以下是我到目前为止: cd $env:SystemRoot\system32\inetsrv\ #Find all applications below RootAppName, convert them to virtual directories $RootAppName = 'Default Web Site/RootApp' ./appcmd list app | Where { [Regex]::IsMatch($_, $RootAppName + '/') } | Foreach{ $FirstIndex = $_.IndexOf('"', 0) $SecondIndex = $_.IndexOf('"', $FirstIndex + 1) $Appname = $_.Substring($FirstIndex + 1, $SecondIndex – $FirstIndex – 1) $PhysicalPath […]