-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Milestone
Description
In order to set PasswordRequired to false requires using the unintuitive syntax for switch parameters of -PasswordRequired:$false. Can this parameter be updated to use two different switches as described in #20? Most beginner/immediate PowerShell users won't know that the -PasswordRequired:$false syntax exists. The other issue comes if NoPasswordRequired is used then a double negative has to be use to get the default value -NoPasswordRequired:$false causing user confusion.
PS C:\> Set-SecretStoreConfiguration -PasswordRequired
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
Scope PasswordRequired PasswordTimeout DoNotPrompt
----- ---------------- --------------- -----------
CurrentUser True 900 False
PS C:\> Set-SecretStoreConfiguration -PasswordRequired:$false
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:
****
A password is no longer required for the local store configuration.
To complete the change please provide the current password.
Enter password:
****
Scope PasswordRequired PasswordTimeout DoNotPrompt
----- ---------------- --------------- -----------
CurrentUser False 900 FalseReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels