title: How can I get the default web with vbscript on IIS/Windows 7?
body: <p>The following vbscript worked fine on XP computers but is not working on Windows 7 computers.</p>
  
  <pre><code>Set objIISRoot = getObject("IIS://localhost/W3SVC/1/Root")
  
  mstrIISRootPath = objIISRoot.Path
  
  ' yadda yadda yadda...more stuff goes on..
  
  Set objIISRoot = nothing
  </code></pre>
  
  <p>"objIISRoot" is null so referencing <code>objIISRoot.Path</code> throws an error. How do you get at the default web in IIS on Windows 7?</p>