Back to product page

Item property (CertLocation)


Returns list of certificate stores in specified location.

Type

A CertStores object. Reference to new instance of certificate store location.

Syntax

  • Basic
object.Item(Location)
The Item(object,Location) syntax has these parts:
objectAn expression evaluating to an object of type CertLocation.
LocationRequired. A CertLocations enumeration, as described in settings.

Remarks

The settings for Location are:

Constant Value Description
CurrentUser 0 System stores at registry location HKEY_CURRENT_USER\Software\Microsoft\SystemCertificates.
CurrentService 1 System stores at registry location HKEY_LOCAL_MACHINE\Software\Microsoft\Crytography\Services\\SystemCertificates.
CurrentUserGroupPolicy 2 System stores at registry location HKEY_CURRENT_USER\Software\Policy\Microsoft\SystemCertificates.
LocalMachineEnterprise 3 Contains certificates shared across domains in the enterprise and downloaded from the global enterprise directory. To synchronize the client's enterprise store, the enterprise directory is polled every eight hours and certificates are downloaded automatically in the background.
LocalMachineGroupPolicy 4 System stores at registry location HKEY_LOCAL_MACHINE\Software\Policy\Microsoft\SystemCertificates.
Services 5 System stores at registry location HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Services\\SystemCertificates.
Users 6 System stores at registry location HKEY_USERS\\Software\Microsoft\SystemCertificates.
LocalMachine 7 System stores at registry location HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates.
Memory 8 A certificate store in cached memory.


This property will return instance of collection of certificates on selected location.

Platforms

Windows