Get-QADLocalCertificateStore

From PowerGUI Wiki

Jump to: navigation, search

Retrieve X.509 certificate stores held in a store location such as CurrentUser or LocalMachine.

This cmdlet is part of the Quest ActiveRoles Server product. Use Get-QARSProductInfo to view information about ActiveRoles Server.

Contents

Syntax

Get-QADLocalCertificateStore [[-StoreName] <string[]>] [[-StoreLocation] {CurrentUser | LocalMachine}] [<CommonParameters>]

Detailed Description

Use this cmdlet to retrieve a certificate store by name. The output object can be used to identify the certificate store to search for certificates.

The cmdlet retrieves certificate stores from a specified store location. Certificate stores are used to save certificates on local computers. The certificate stores include:

   - Physical stores, where certificates are physically stored on the local computer, in the system registry
   - Logical stores, to group certificates together in functional categories, by using pointers to the physical stores

The cmdlet supports both physical and logical certificate stores, allowing a store to be retrieved from a particular location. Store locations are high-level containers that hold the certificate stores for the current user and for all users. Each system has two store locations: CurrentUser and LocalMachine (all users).



Parameters

Name Description Required? Pipeline Input Default Value
StoreLocation Specify the location from which to retrieve a certificate store. The possible parameter values are:
  CurrentUser   The store holds certificates for the current user - default value.
  LocalMachine  The store holds certificates for the local machine (all users).

The following values are permitted for this object type.

false false CurrentUser
StoreName Specify the name of the certificate store to retrieve. Use a string array of names to retrieve more than one store at a time. false false

Return Values

Quest.ActiveRoles.ArsPowerShellSnapIn.X509CertificateStore

Examples

EXAMPLE 1

Get-QADLocalCertificateStore

Description


Retrieve all the certificate stores that hold certificates for the current user.

EXAMPLE 2

Get-QADLocalCertificateStore -StoreLocation LocalMachine

Description


Retrieve all the certificate stores that hold certificates for the local machine.

EXAMPLE 3

Get-QADLocalCertificateStore Root -StoreLocation LocalMachine

Description


Retrieve the certificate store for trusted root certification authorities (CAs) held in the LocalMachine store location.

EXAMPLE 4

Get-QADLocalCertificateStore 'MyTrustedStore','MyUntrustedStore'

Description


Retrieve two certificate stores with the specified names that hold certificates for the current user.

Personal tools