Windows Server

Setting FTP Banners in IIS

IIS is a pretty straight forward system to manage. One of the more common post-flight tasks for setups of IIS is to configure FTP banners. In Server 2003, this can be done by opening Internet Information Services (IIS) Manager from Start > Administrative Tools. Then, browse to the server name > FTP Sites > Default FTP Site (or the name of the one you would like to configure if you have multiple per server) and then click on the Properties for the site.

At the FTP Site Properties pane, click on the Messages tab. Here, you can provide a Banner to be shown to unauthorized users, a Welcome page, to be shown to authorized users, an Exit and define the maximum number of connections.

Click Apply to commit your changes and then restart the site (right-click on it in IIS Manager and click Stop, then Start).

In Server 2008 the process is pretty straight forward as well. Open Internet Information Services (IIS) Manager from Start > Administrative Tools. Then click on Connections > server name > name of the site > FTP Messages. Then uncheck the box to Suppress Default Banner. Check the box for Support User Variables. Then in the banner field, provide the message to be shown to FTP users that have not yet authenticated. Then in the Welcome Message field, provide a welcome message (you can use Windows variables here). For example, I like “Welcome %UserName% would you like to play a game”. At the Exit Message field you can provide a message to display authenticated users when they log out of the system. Click on Apply and restart the sites that are changed.

This can also be done via appcmd.exe or simply using the set command, setting a config to the site path and a message:

set config -section:system.applicationHost/sites /[name='ftp.krypted.com'].ftpServer.messages.bannerMessage:"Welcome to https://krypted.com/" /commit:apphost

set config -section:system.applicationHost/sites /[name='ftp.krypted.com'].ftpServer.messages.suppressDefaultBanner:"True" /commit:apphost