Configuring SMTP Settings programmatically on IIS 7 on win2008

Today I got a case where I was asked for a script to configure SMTP programmatically in IIS 7. To be precise requirement was to check [corresponding setting on IIS 7] for the “All except the list below” check box and add the IP’s to the Deny List programmatically . Some of the interesting facts…

1