< Back

Set-CsEntry

Mon Jan 13, 2020 6:44 am

NAME Set-CsEntry



SYNOPSIS

Set CredentialStore Entries





SYNTAX

Set-CsEntry [-Name] <String> [-Credential] <PSCredential> [[-Description] <String>] [[-FilePath] <String>]

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The Set-CsEntry cmdlet adds or updates CredentialStore entries in a CredentialStore file.





PARAMETERS

-Name <String>

Specifies the CredentialStore entry name of entry to be added or updated.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Credential <PSCredential>

Specifies the PSCredential of the CredentialStore entry.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Description <String>

A description of the CredentialStore entry.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-FilePath <String>

Specifies the path to the CredentialStore file.



Required? false

Position? 4

Default value (Get-CsDefaultStore)

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-CsEntry -FilePath CredentialStore.json -Name LocalServer -Credential $cred



This command sets the CredentialStore entry named LocalServer in the CredentialStore.json file.











RELATED LINKS

https://github.com/fodonnel/CredentialStore