< Back
Set-VaultCredential
Post
NAME Set-VaultCredential
SYNOPSIS
Store the given credential in the PasswordVault for a given resource.
SYNTAX
Set-VaultCredential [-Resource] <String[]> [-Credential] <PSCredential> [<CommonParameters>]
Set-VaultCredential [-Resource] <String[]> [-User] <String> [-Password] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Resource <String[]>
The resource to remove from the PasswordVault
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
The user stored in Credential connected to the resource
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-User <String>
The user connected to the resource
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Password <String>
The password fot the given user
Required? true
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
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-Credential -Resource https://msdn.microsoft.com -User CONTOSO\\john.doe -Password 's3cr3t'
Description
-----------
Stores the credentials for the user john.doe on domain CONTOSO for the resource https://msdn.microsoft.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-Credential -Resource https://msdn.microsoft.com -Credential (Get-Credential CONTOSO\\john.doe)
Description
-----------
Stores the credentials for the user john.doe on domain CONTOSO for the resource https://msdn.microsoft.com
The password will be asked in the dialog box generated by Get-Credential
RELATED LINKS
SYNOPSIS
Store the given credential in the PasswordVault for a given resource.
SYNTAX
Set-VaultCredential [-Resource] <String[]> [-Credential] <PSCredential> [<CommonParameters>]
Set-VaultCredential [-Resource] <String[]> [-User] <String> [-Password] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Resource <String[]>
The resource to remove from the PasswordVault
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
The user stored in Credential connected to the resource
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-User <String>
The user connected to the resource
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Password <String>
The password fot the given user
Required? true
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
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-Credential -Resource https://msdn.microsoft.com -User CONTOSO\\john.doe -Password 's3cr3t'
Description
-----------
Stores the credentials for the user john.doe on domain CONTOSO for the resource https://msdn.microsoft.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-Credential -Resource https://msdn.microsoft.com -Credential (Get-Credential CONTOSO\\john.doe)
Description
-----------
Stores the credentials for the user john.doe on domain CONTOSO for the resource https://msdn.microsoft.com
The password will be asked in the dialog box generated by Get-Credential
RELATED LINKS