New-DSCredentialEntry
Synopsis
Syntax
__AllParameterSets
New-DSCredentialEntry [[-ConnectionSubType] <CredentialResolverConnectionType>] [-Name] <string>
[[-Domain] <string>] [[-Username] <string>] [[-Password] <string>] [[-MnemonicPassword] <string>]
[[-VaultID] <guid>] [[-Group] <string>] [-PromptForPassword] [-Description <string>]
[-Tags <string>] [-Expiration <string>] [-CredentialViewedCommentIsRequired]
[-TicketNumberIsRequiredOnCredentialViewed] [-CredentialViewedPrompt]
[-CheckoutMode <CheckOutMode>] [-AllowOffline <AllowOffline>] [-PrivateKeyType <PrivateKeyType>]
[-PrivateKeyPath <string>] [-PrivateKeyPassphrase <string>] [-PromptForPassphrase]
[-AsLegacyResponse] [<CommonParameters>]Description
Examples
PS C:\> $NewCredEntry = @{
VaultId = ([guid]::Empty)
EntryName = 'rootlocal '
Username = 'root'
Password = 'Pa$$w0rd!'
Folder = 'Powershell rules'
credentialViewedCommentIsRequired = $true
credentialViewedPrompt = $true
ticketNumberIsRequiredOnCredentialViewed = $true
checkOutMode = 'Default'
Description = 'This is a description'
Tags = '1 2 3 4 5'
};
New-DSCredentialEntry @NewCredEntryParameters
-AllowOffline
-AsLegacyResponse
-CheckoutMode
-ConnectionSubType
-CredentialViewedCommentIsRequired
-CredentialViewedPrompt
-Description
-Domain
-Expiration
-Group
-MnemonicPassword
-Name
-Password
-PrivateKeyPassphrase
-PrivateKeyPath
-PrivateKeyType
-PromptForPassphrase
-PromptForPassword
-Tags
-TicketNumberIsRequiredOnCredentialViewed
-Username
-VaultID
CommonParameters
Notes
Last updated
Was this helpful?