locked
FTP site setup with Powershell - Advanced Settings RRS feed

  • Question

  • User-2108767085 posted

    Hi there

    I am setting up an FTP site via PowerShell. I can get all the basics OK but I cant seem to figure out how to set the Advanced Settings..

    Things like - Max Connections, Control Channel Timeout

    I found this:

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

    But cant make it work for my FTP site.

    I have tried through the Configuration Editor as well and the string it gives me also does not work:

    Add-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST/TestFTPsite' -filter "system.net/connectionManagement" -name "." -value @{maxconnection=10000}

    It errors saying - Add-WebConfigurationProperty : Property TestFTPsite is not found on system.net/connectionManagement.

    Any advice would be great!

    Thanks

    Friday, January 8, 2021 5:37 AM

Answers

  • User1771714573 posted

    Hi pelagos,

    Please try to use these powershell command

    Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/sites/site[@name='Default Web Site']/ftpServer/connections" -name "controlChannelTimeout" -value 100
    Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/sites/site[@name='Default Web Site']/ftpServer/connections" -name "maxConnections" -value 4294967290
    

    Best regards,

    Brucz

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, January 11, 2021 3:30 AM

All replies

  • User1771714573 posted

    Hi pelagos,

    Please try to use these powershell command

    Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/sites/site[@name='Default Web Site']/ftpServer/connections" -name "controlChannelTimeout" -value 100
    Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST'  -filter "system.applicationHost/sites/site[@name='Default Web Site']/ftpServer/connections" -name "maxConnections" -value 4294967290
    

    Best regards,

    Brucz

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, January 11, 2021 3:30 AM
  • User-2108767085 posted

    Hey Thanks!

    That worded a treat!

    pelagos

    Tuesday, January 12, 2021 8:49 PM