Skip to content

Set-SecretStoreConfiguration -PassThru Parameter #25

@ThomasNieto

Description

@ThomasNieto

Currently Set-SecretStoreConfiguration outputs a Microsoft.PowerShell.SecretStore.SecureStoreConfig object by default. It may be better to not output unless a -PassThru parameter is passed like other Set-* cmdlets, for example Set-Service. That removes the need for users to pipe to Out-Null or assign it to $null or cast to [void] to suppress the output.

PS C:\> Set-SecretStoreConfiguration -PasswordTimeout 500

Confirm
Are you sure you want to perform this action?
Performing the operation "Changes local store configuration" on target "SecretStore module local store".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
Vault Microsoft.PowerShell.SecretStore requires a password.
Enter password:
****

      Scope PasswordRequired PasswordTimeout DoNotPrompt
      ----- ---------------- --------------- -----------
CurrentUser             True             500       False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions