Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
287 views
in Technique[技术] by (71.8m points)

scripting - FTP PowerShell Setup - Advanced Settings

I am making a basic PowerShell script to setup an FTP site.

I can get all the 'basics' done but cant figure out how to change any of the 'advanced settings' - i.e. Max Connections, Control Channel Timeout etc. These are the settings that you can find by opening the Advanced Settings under Manage FTP Site in IIS Manager.

Any advice would be great

Thanks

question from:https://stackoverflow.com/questions/65622754/ftp-powershell-setup-advanced-settings

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...