Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlexLaforge/d35d88719187e3a4255024c054d1e1e1 to your computer and use it in GitHub Desktop.
Save AlexLaforge/d35d88719187e3a4255024c054d1e1e1 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