« Previous Next »

Thread: Membership Provider Misc. Settings in WMI

Last post 03-12-2008 11:57 AM by Switche. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 03-12-2008, 11:57 AM

    • Switche
    • Not Ranked
    • Joined on 11-26-2007, 3:46 PM
    • Posts 9

    Membership Provider Misc. Settings in WMI

    I am trying to manage custom membership providers via WMI's WebAdministration provider. I can add, remove, and modify membership providers, but I cannot set any properties on providers other than the "Name" and "Type" properties. For example, I need to manage the "ConnectionString" and "ApplicationName" properties. These properties are set in the web.config file for this path, and function properly, but the properties do not exist in the provider object I am working with in WMI.

    The objects I am working with are MembershipSection (ConfigurationSection object), its MembershipSection.Providers property (ProvidersSettings object) and then that object's Providers property (array of NameTypeElement objects). WMI Object Browser confirms that even existing providers with the "ApplicationName" and "ConnectionString" properties do not exhibit any properties except Name and Type in WMI. The NameTypeElement object's class definition does not contain any other properties than these two (see http://msdn2.microsoft.com/en-us/library/aa347551(VS.85).aspx).

    All of this makes me believe I'm either looking at the incorrect object, or that WMI cannot manage these properties. I know how to use appcmd or ASP.NET to set these properties, but would like to know how to do so in WMI.

    Thanks

Page 1 of 1 (1 items)
Microsoft Communities