Re: CAPICOM and Enumerating AD Store
From: Shawn Corey [MSFT] (shawncor_at_online.microsoft.com)
Date: Mon, 14 Jun 2004 11:42:32 -0700
Browsing the AD store is a bit different from browsing the local stores,
instead of store names like My or Root you supply the CN of the user. If the
DN for a user is "CN=A User, DC=Foo, DC=Com" then you would use a store open
oStore.Open CAPICOM_ACTIVE_DIRECTORY_USER_STORE, "CN=A User"
The full DN is not entered just the CN= part.
This seems a little counter to what the way CAPICOM opens stores on the
local machine, but it gives the ability to browse cert stores for different
users by supplying their CN, making it easy to get encryption certs and such
-- Thanks, Shawn This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "BobO" <firstname.lastname@example.org> wrote in message news:37320CC2-45A9-4638-8CCC-2245CE0BBC5B@microsoft.com... > I am not having luck viewing the AD Store using VBScript. Views of local stores work, but a call to the AD Store always returns "The search filter cannot be recognized". Any code samples to help here in VBScript? I would like to dump all certs...