This example shows how to set and unset the default vault for the current user. The first command
gets information about all registered vaults and shows that the LocalStore is the default vault
for the user. The second command makes the CredMan vault the default vault. The third command
shows that the CredMan vault is now default, and LocalStore vault is no longer default. The
fourth command uses the ClearDefault parameter to remove the default designation from any
registered vault. The last command shows that there is no default vault.
Parameters
-ClearDefault
Sets the IsDefault property to $false for all registered vaults.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
Inputs
None
Outputs
None
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.