Querying IIS SMTP Smarthost Settings

Had a request to throw something together to query multiple machines and find the smarthost server that IIS was configured to use.  All I had time for was 'quick and dirty' so this is what I came up with;   get-adcomputer -filter * | Select-Object dnshostname >c:\servers.txt Get-WmiObject -Namespace "root\MicrosoftIISv2" -Class "IISSMTPServerSetting" -Filter "Name ='SmtpSvc/1'" … Continue reading Querying IIS SMTP Smarthost Settings