src/Set-CsDefaultStore.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<# .SYNOPSIS Set the path to the default CredentialStore .DESCRIPTION The Set-CsDefaultStore cmdlet sets the path to the default CredentialStore. This path is not persisted across powershell sessions. .PARAMETER FilePath Specifies the path to the CredentialStore file. .LINK https://github.com/fodonnel/CredentialStore #> function Set-CsDefaultStore { [CmdletBinding(SupportsShouldProcess = $true)] param( [Parameter(Mandatory = $true, Position = 0)] [Alias("File")] [string] $FilePath ) if ($pscmdlet.ShouldProcess($FilePath)) { $Script:DefaultCredentialStore = $FilePath } } |