Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-SecretStoreConfiguration -PassThru Parameter #25

Closed
ThomasNieto opened this issue Sep 29, 2020 · 2 comments
Closed

Set-SecretStoreConfiguration -PassThru Parameter #25

ThomasNieto opened this issue Sep 29, 2020 · 2 comments
Milestone

Comments

@ThomasNieto
Copy link

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
@PaulHigin
Copy link
Contributor

I personally like have the confirmation, but I agree that this would be more consistent with other cmdlets.

@PaulHigin PaulHigin added this to the Preview 3 milestone Oct 28, 2020
@PaulHigin
Copy link
Contributor

Implemented for preview3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants