set IIS=GetObject(“IIS://localhost/W3svc”)
for each web in IIS
  wscript.echo web.ServerComment
next

Links:
Metabase Property Reference (IIS 6.0)

Share