FTP PowerShell 设置 - 高级设置

FTP PowerShell Setup - Advanced Settings

我正在制作一个基本的 PowerShell 脚本来设置 FTP 站点。

我可以完成所有 'basics' 但无法弄清楚如何更改任何 'advanced settings' - 即最大连接数、控制通道超时等。这些是您可以找到的设置打开 IIS 管理器中管理 FTP 站点下的高级设置。

任何建议都很好

谢谢

First google hit by Shay Levi back in 2008

Set-WebConfigurationProperty '/system.applicationHost/sites/site[@name="Default Web Site"]' -Name Limits -Value @{MaxConnections=<yourValue>}

You can find these properties in the IIS Reference doc