Edit

Get-SecretStoreConfiguration

Returns SecretStore configuration information.

Syntax

Default (Default)

Get-SecretStoreConfiguration

Description

Important

The PowerShell team has decided that Secret modules are is feature complete and will no longer be actively developed. The modules will continue to be supported for security and critical bug fixes. The code repository will be archived.

The latest versions published are:

The nature of secrets has fundamentally changed since this project was designed. Passwordless authentication methods such as passkeys, single sign-on, and federated credential systems such as Microsoft Entra ID, biometrics, and hardware security keys are the future.

This cmdlet reads the SecretStore configuration file and returns the defined settings.

Examples

Example 1

PS C:\> Get-SecretStoreConfiguration

      Scope Authentication PasswordTimeout Interaction
      ----- -------------- --------------- -----------
CurrentUser       Password             900      Prompt

This example shows the current configuration for SecretStore. It's configured for the current user. It requires a password for initial access in a session and prompts the user for it in an interactive session. After fifteen minutes, the password is required again for access.

Inputs

None

Outputs

Microsoft.PowerShell.SecretStore.SecureStoreConfig

Notes

The AllUsers Scope isn't supported. The Scope is always CurrentUser.