Groups | Blog | Home
all groups > iis smtp nntp > october 2005 >

iis smtp nntp : gather configuration


Emyeu
10/11/2005 12:00:00 AM
is their any tools or utility that gather configuration information of smtp
server?

Ken Schaefer
10/11/2005 12:00:00 AM
Sure - what configuration information do you want? It's pretty much all
stored in the metabase so you can use interfaces like ADSI or WMI to get the
configuration.

adsutil.vbs wraps ADSI quite nicely, so you can use that to query the
current configuration. adsutil.vbs is in c:\inetpub\adminscripts\

Cheers
Ken

[quoted text, click to view]
: is their any tools or utility that gather configuration information of
smtp
: server?
:
:

Emyeu
10/11/2005 12:00:00 AM
i have problem with the script.
it prompts an error "The script cannot run on WScript".
i run in Command Prompt, as problem.


[quoted text, click to view]

Ken Schaefer
10/11/2005 12:00:00 AM
You need to use cscript. Either register cscript as the default intepreter
for scripts, or run it using:

cscript adsutil.vbs

Think of cscript as the "command line version" of WScript.

Cheers
Ken

[quoted text, click to view]
:i have problem with the script.
: it prompts an error "The script cannot run on WScript".
: i run in Command Prompt, as problem.
:
:
[quoted text, click to view]
: > Sure - what configuration information do you want? It's pretty much all
: > stored in the metabase so you can use interfaces like ADSI or WMI to get
: > the
: > configuration.
: >
: > adsutil.vbs wraps ADSI quite nicely, so you can use that to query the
: > current configuration. adsutil.vbs is in c:\inetpub\adminscripts\
: >
: > Cheers
: > Ken
: >
[quoted text, click to view]
: > : is their any tools or utility that gather configuration information of
: > smtp
: > : server?
: > :
: > :
: >
: >
:
:

Emyeu
10/12/2005 12:00:00 AM
hi,
can you show me examples on how to execute the scripts (with parameters).
as i always get error,,, Wrong number of Args......
thanks.

[quoted text, click to view]

Ken Schaefer
10/17/2005 12:00:00 AM
Hi,

' Enumerate all properties of the first SMTP virtual server:
cscript adsutil.vbs enum smtpsvc/1

' Get drop directory property value
cscript adsutil.vbs get smtpsvc/1/dropdirectory

Cheers
Ken

--
Web: www.adOpenStatic.com
IIS Blog: www.adOpenStatic.com/cs/blogs/ken


[quoted text, click to view]
: hi,
: can you show me examples on how to execute the scripts (with parameters).
: as i always get error,,, Wrong number of Args......
: thanks.
:
[quoted text, click to view]
: > You need to use cscript. Either register cscript as the default
intepreter
: > for scripts, or run it using:
: >
: > cscript adsutil.vbs
: >
: > Think of cscript as the "command line version" of WScript.
: >
: > Cheers
: > Ken
: >
[quoted text, click to view]
: > :i have problem with the script.
: > : it prompts an error "The script cannot run on WScript".
: > : i run in Command Prompt, as problem.
: > :
: > :
[quoted text, click to view]
: > : > Sure - what configuration information do you want? It's pretty much
: > all
: > : > stored in the metabase so you can use interfaces like ADSI or WMI to
: > get
: > : > the
: > : > configuration.
: > : >
: > : > adsutil.vbs wraps ADSI quite nicely, so you can use that to query
the
: > : > current configuration. adsutil.vbs is in c:\inetpub\adminscripts\
: > : >
: > : > Cheers
: > : > Ken
: > : >
[quoted text, click to view]
: > : > : is their any tools or utility that gather configuration
information
: > of
: > : > smtp
: > : > : server?
: > : > :
: > : > :

QuangLam
12/10/2005 12:00:00 AM
I want write programming 'find STMP Server when input domain 'www.yahoo.com'
'
Do you help me!
Email : Nguyenquanglam@gmail.com

QuangLam
12/10/2005 12:00:00 AM
I want write programming 'find STMP Server when input domain 'www.yahoo.com'
'
Do you help me!
Email : Nguyenquanglam@gmail.com


AddThis Social Bookmark Button