Skip to content

Instantly share code, notes, and snippets.

@Dan1el42
Last active June 6, 2025 09:43
Show Gist options
  • Select an option

  • Save Dan1el42/2de2e7635e48fd00b2cc to your computer and use it in GitHub Desktop.

Select an option

Save Dan1el42/2de2e7635e48fd00b2cc to your computer and use it in GitHub Desktop.
Set-ItemProperty -Path $defaultFTP -Name ftpServer.security.ssl.serverCertHash -Value 582EF84C1D431738C0A5F75C845CAA03D81E63B6 # Replace my sample thumbprint with the value from your certificate
# Data channel ports are a per server configuration not per site
Set-WebConfigurationProperty -PSPath IIS:\ -Filter system.ftpServer/firewallSupport -Name lowDataChannelPort -Value 5001
Set-WebConfigurationProperty -PSPath IIS:\ -Filter system.ftpServer/firewallSupport -Name highDataChannelPort -Value 5001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment