IIS 6.0: what is the WMI equivalent of "Convert Folder To Application"?
- by Richard Berg
Basically, imagine you need to automate these steps:
Open Internet Information Services.
Find the web site, find the folder, right click the folder and select properties.
Click the Directory folder.
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.