The xCredentialManager DSC resources are used for storing credentials in Credential Manager. They include xStoredCredential
Please check out common DSC Resources contributing guidelines.
- xStoredCredential ensures that a credential is stored for a particular user.
- UserTag: A tag uniquely identifying the user to store the credentials for.
- UserCredential: The user for which to store the credential.
- Target: The host to store the credential for.
- TargetCredential: The credential to connect to the target.
- Ensure: Whether the stored credential should be added or removed.
- Force: Boolean, default is false. Update the credential even if it already exists.
0.1
- Initial release with the following resources
- xStoredCredential
configuration Sample_xCredentialManager
{
param([PSCredential] $UserCredential, [PSCredential] $TargetCredential, [string] $Target)
Import-DscResource -module xCredentialManager
xCredentialManager Scope
{
Ensure = 'Present'
UserTag = $UserCredential.UserName.GetHashCode()
UserCredential = $UserCredential
Target = $Target
TargetCredential = $TargetCredential
}
}