How can I hide IIS SMTP version number?

Go to cmd.exe then run

cd c:\Inetpub\Adminscripts
cscript adsutil.vbs set smtpscv/ vsi number /connectresponse “New banner here”

I've found the answer after a while and decided to help others which have the same question.

If you open the MetaBase.xml go to

  1. <IIsSmtpServer Location ="/LM/SmtpSvc/1"
  2. Add ConnectResponse="String of Your Own Choice here" to the step above.
  3. Reboot your server if EnableEditWhileRunning is not enabled

The version is hidden now.