Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 3 Sep 2008 17:03:17 -0700 (PDT),    group: microsoft.public.win32.programmer.wmi        back       


Inspecting files via IIS   
Using WMI's access to IIS objects, I'm trying to write a script that
will loop through all my sites, and do something to each site that has
a web.config file. I am having trouble finding out which sites have
that file.

I'm able to loop through all my sites and get the "root" virtual
directory (an IIsWebVirtualDir object), and I can see it's path. The
difficulty is that this script is checking the sites on a remote
machine, meaning that the local path of the root virtual directory
doesn't really help. I would instead like to check for the existence
of an IIS object that represents the web.config file.

I assume (perhaps incorrectly) that since the IIS Manager application
displays the files within the currently selected directory, that
there's an IIS WMI object I can use here. Any help?

Thanks
date: Wed, 3 Sep 2008 17:03:17 -0700 (PDT)   author:   Moskie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us