IIS 6.0: what is the WMI equivalent of "Convert Folder To Application"?

Posted by Richard Berg on Stack Overflow See other posts from Stack Overflow or by Richard Berg
Published on 2010-03-18T19:37:50Z Indexed on 2010/03/18 19:41 UTC
Read the original article Hit count: 402

Filed under:
|
|
|
|

Basically, imagine you need to automate these steps:

  1. Open Internet Information Services.
  2. Find the web site, find the folder, right click the folder and select properties.
  3. Click the Directory folder.
  4. Under Applications settings, click the Create button. The application is now created. Click OK to finish.

(click for a pictoral walkthru)

My end goal is Powershell, but answers that use JScript or VB.NET or whatever are fine too.

Bonus points if the same code works against an IIS7 application running in 6.0 Compatibility Mode.

© Stack Overflow or respective owner

Related posts about wmi

Related posts about iis