Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to list all virtual directories for a IIS6 web site using WMI with powershell?
    primarykey
    data
    text
    <p>I've looked at this question <a href="https://stackoverflow.com/questions/3575442/getting-all-virtual-directories-for-a-iis6-web-site-using-wmi">Getting all virtual directories for a IIS6 web site using WMI</a> but it doesn't answer my question.</p> <p>I can get a list of the web sites but not the applications or virtual directories in them. I've tried the following.</p> <pre><code>Get-WmiObject -class "IIsWebServerSetting" -namespace "root\microsoftiisv2" | select-object __SERVER, ServerComment, Name Get-WmiObject -class "IIsWebVirtualDir" -namespace "root\microsoftiisv2" | select-object __SERVER, ServerComment, Name, Path, DefaultDoc Get-WmiObject -class "IIsWebVirtualDirSetting" -namespace "root\microsoftiisv2" | select-object __SERVER, ServerComment, Name, Path, DefaultDoc </code></pre> <p>None of these retrieve a list of virtual directories.</p> <p>I can see the virtual directories in the metabase.xml file</p> <pre><code>&lt;IIsWebVirtualDir Location ="/LM/W3SVC/1653786949/root/PBSNET2005/GUI" AccessFlags="AccessExecute | AccessRead | AccessScript" AppFriendlyName="ClientServicesGUI" </code></pre> <p>The reason why i requires this is because i want to use a green/blue deployment process. To determine which version to update i need to find out what the current version is. I will use the physical path of the virtual directory to do this.</p> <p>Does anyone have an alternative method of obtain the physical path of a virtual directory? Has anyone ever queried or updated the metabase.xml file directly? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload