Michael
Thu Oct 23 21:35:58 CDT 2003
Bruce Pate wrote:
> Sorry, IISWeb.vbs is delivered with Server 2003 and is in the
> Windows\System32 folder. I found it from Technet at the URL below.
>
> My code (_IISWebCreate.vbs) only has one statement (line 1) and it is
> as follows:
> iisweb /query
Pretty simple then...
iisweb /query
is not a valid vbscript statement.
A 1 line BAT or CMD file will do the job if all you want to do is call
iisweb.vbs with a /query switch...
cscript.exe %SystemRoot%\system32\iisweb.vbs /query
> It is simply supposed to print a report of all the web sites in IIS.
> Perhaps I shouldn't be trying to execute the thing in my own VBS
> file?... I was under the assumption that the system knew to execute
> IISWeb.vbs, which it seems to understand until it get's to the
> slash... Sorry for my newbieness...
>
> The Technet URL is:
>
http://msdn.microsoft.com/library/en-us/iisref/htm/ListingWebSites.asp
>
> The code in IISWeb.vbs is rather lengthy as delivered by Microsoft...
> I'm just looking for an answer for the correct method to execute this
> delivered script... Looking at the technet site, the script will also
> create, delete, start, stop and pause web sites with parameters
> passed to it.
>
> Thanks in advance for any help someone can provide...
>
> Bruce Pate
>
>
> "Michael Harris (MVP)" <mikhar@mvps.org> wrote in message
> news:e93zpLXmDHA.708@TK2MSFTNGP10.phx.gbl...
>>> Windows Script Host
>>> Script: C:\Windows\system32\_IISWebCreate.vbs
>>> Line: 1
>>> Char: 8
>>
>>
>> Post at least what line 1 in C:\Windows\system32\_IISWebCreate.vbs
>> contains (which I assume you cloned from IISWeb.vbs).
>>
>> Also don't assume that everyone has a copy if IISWeb.vbs (I don't
>> ;-)...
>>
>>
>>
>>
>>> Error: Syntax error
>>> Code 800A03EA
>>> Source: Microsoft VBScript compilation error
>>>
>>> I'm running this as administrator in the System32 folder itself...
>>> Am I missing something fundamental here, or is there some feature
>>> that I need to cut on?
>>
>> --
>> Michael Harris
>> Microsoft.MVP.Scripting
>>
>> Microsoft® Windows®2000 Scripting Guide
>>
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
>>
>> TechNet Script Center Sample Scripts
>>
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
>>
>> WSH 5.6 documentation download
>>
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
--
Michael Harris
Microsoft.MVP.Scripting
Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en