The property you want is the RelayIPList but that script I suggested does
not seem to get the value. Maybe because it is looking i nthe wrong place.
Maybe using ADSI instead of WMI would work. I am not very good with WMI. At
"Al Mulnick" <amulnick_No_SPAM@ncDOTrr.com> wrote in message
news:e8%23Yd6XuFHA.1252@TK2MSFTNGP09.phx.gbl...
> Thanks Chris. That shows me a lot of information and I had seen a similar
> script on scriptcenter. Unfortunately, it isn't quite what I'm looking
> for. The information I want is by domain name (text) vs. ip address. I
> suspect that's the same area that the information is collected in, but
> it's only given back out as text when I export it using metabase explorer.
> Unfortunately, I can't otherwise find the data.
>
> Any other ideas?
>
> Al
> "Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
> news:%23OldMPJuFHA.3720@TK2MSFTNGP14.phx.gbl...
>>I am not sure how to interept the settings but here are some details that
>>may help.
>>
>> The RelayIpList property is an octet string containing a list of IPs
>> allowed or denied for relay listed in the Relay Restrictions dialog box.
>>
>>
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/13ca169c-c1ec-4056-b75e-8c62866b8e91.mspx >>
>> Octet String (SID) Property Type
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/octet_string__sid__property_type.asp
>>
>> Demo showing properties of SMTP including ReplyIpList
>>
http://www.cruto.com/resources/VBScript/VBScript-Examples/iis/iis6/smtp/_List-SMTP-Service-Setting-Information.asp >>
>> --
>> Cheers
>>
>> Chris
>>
>> Chris Crowe [IIS MVP]
>>
http://blog.crowe.co.nz >>
>>
>> "Al Mulnick" <amulnick_No_SPAM@ncDOTrr.com> wrote in message
>> news:%23Ro7n%23$tFHA.1472@TK2MSFTNGP15.phx.gbl...
>> Is it possible to configure the entire IIS SMTP server via script?
>>
>> I know there are sample scripts out there for IIS at script center.
>> Those are nice to read things, but I'm having trouble finding some
>> specific keys/values in the metabase.
>>
>> Here's what I'm trying to do:
>>
>> With w2k3 server IIS SMTP, I want to programmatically configure the hosts
>> listed in /virtual server/access/Relay Restrictions, computers. I
>> suspect that the information I want to manipulate is in binary format in
>> the RelayIpList key, but I'm looking for a) confirmation that's the
>> correct key in the metabase and b) a way to programmatically manipulate
>> that key so as to import some domains.
>>
>> Can anyone help with that? Or point me to some resources that can?
>>
>> Any help greatly appreciated.
>>
>> Al
>>
>
>