Here is a sample vbscript using which we can get SMTP servers instance names in a particular domain pragmatically via ADSI. NOTE: Following programming examples is for illustration only, without warranty either expressed or implied, including, but not