FTP site setup with Powershell - Advanced Settings [Answered]RSS

2 replies

Last post Jan 12, 2021 08:49 PM by pelagos

‹ Previous Thread|Next Thread ›
  • FTP site setup with Powershell - Advanced Settings

    Jan 08, 2021 05:37 AM|pelagos|LINK

    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

  • Re: FTP site setup with Powershell - Advanced Settings

    Jan 11, 2021 03:30 AM|Brucz|LINK

    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

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: FTP site setup with Powershell - Advanced Settings

    Jan 12, 2021 08:49 PM|pelagos|LINK

    Hey Thanks!

    That worded a treat!

    pelagos

‹ Previous Thread|Next Thread ›