« Previous Next »

Thread: Configure Webdav Authoring Rules via code?

Last post 10-07-2008 12:18 AM by ksingla. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-06-2008, 6:54 PM

    Configure Webdav Authoring Rules via code?

     Ok, I was reading this article on how to use AppCmd via the command line

      How to Configure WebDAV Settings Using AppCmd

     I actually need to do this via scripting interface if possible.

     For instance I am creating a virtual directory via code like this:

            Dim iisManager As New Microsoft.Web.Administration.ServerManager()
            Dim app As Microsoft.Web.Administration.Application = iisManager.Sites("Default Web Site").Applications("/")
            app.VirtualDirectories.Add("/Users/" & "keith" , "C:\keith")
            iisManager.CommitChanges()


    The code above creates my virtual directory for my webdav site "Default Web Site".

    I now need to do something similar for creating the Authoring Rules via code if possible.  The link above shows how to do this via command line but I want to do it without having to shell a command line process.

    Is this possible? 

  • 10-07-2008, 12:18 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 748

    Re: Configure Webdav Authoring Rules via code?

    It certainly possible using MWA itself. Below are two articles which explain editing configuring sections using MWA.

    http://learn.iis.net/page.aspx/165/how-to-use-microsoftwebadministration/
    http://learn.iis.net/page.aspx/166/accessing-configuration-sections-using-microsoftwebadministration-mwa/

    If you don't know what section or property name to pass, look at the webdav schema in %windir%\system32\inetsrv\config\schema and try to make sense out of it.

    Thanks,
    Kanwal

Page 1 of 1 (2 items)