http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq
has examples using both ADSI and WMI...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> Does anyone knows how to check IIS service using a VBS file? if it is
> stopped then restart it.
> thanks in advance :-)