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

Reset-SecretStore doesn't respect-Confirm:$false #97

Open
3 tasks done
iamshital opened this issue Jul 18, 2022 · 0 comments
Open
3 tasks done

Reset-SecretStore doesn't respect-Confirm:$false #97

iamshital opened this issue Jul 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@iamshital
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

Install-Module -Name Microsoft.PowerShell.SecretStore -Repository PSGallery -Force -Verbose
$password = ConvertTo-SecureString "1234567890" -AsPlainText -Force
Set-SecretStoreConfiguration -Scope CurrentUser -Authentication Password -PasswordTimeout 172800 -Interaction None -Password $password -Confirm:$false

This sets the secret store configuration.
Now I want to reset it.

Reset-SecretStore -Scope CurrentUser -Authentication None -Confirm:$false

This gives me prompt to confirm my action, even if I mentioned -Confirm:$false

Expected behavior

Reset-SecretStore should complete without user prompt when -Confirm:$false is mentioned.

Actual behavior

Reset-SecretStore -Scope CurrentUser -Authentication None -Confirm:$false
WARNING: !!This operation completely removes all SecretStore module secrets and resets configuration settings to new values!!

Reset SecretStore
Are you sure you want to erase all secrets in SecretStore and reset configuration settings to default?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

Error details

No response

Environment data

PS>$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.1682
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1682
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

1.0.0

Visuals

No response

@SydneyhSmith SydneyhSmith added the bug Something isn't working label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants