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] "Emyeu" <cmchong20@yahoo.com> wrote in message
news:urI34D6zFHA.464@TK2MSFTNGP15.phx.gbl...
: 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" <kenREMOVE@THISadOpenStatic.com> wrote in message
: news:OYsV%233lzFHA.2064@TK2MSFTNGP09.phx.gbl...
: > 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] : > "Emyeu" <cmchong20@yahoo.com> wrote in message
: > news:%23QhNp9kzFHA.3180@TK2MSFTNGP14.phx.gbl...
: > :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" <kenREMOVE@THISadOpenStatic.com> wrote in message
: > : news:%23MCwAmkzFHA.156@tk2msftngp13.phx.gbl...
: > : > 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] : > : > "Emyeu" <cmchong20@yahoo.com> wrote in message
: > : > news:%23Y4w4AjzFHA.2312@TK2MSFTNGP14.phx.gbl...
: > : > : is their any tools or utility that gather configuration
information
: > of
: > : > smtp
: > : > : server?
: > : > :
: > : > :