Sets a secret in a secret vault with metadata.
Save-Secret.ps1 [-Name] <String> [-Secret] <SecureString> [-Title <String>] [-Description <String>]
[-Note <String>] [-Uri <Uri>] [-Created <DateTime>] [-Expires <DateTime>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Save-Secret.ps1 [-Name] <String> [-Title <String>] [-Description <String>] [-Note <String>] [-Uri <Uri>]
[-Created <DateTime>] [-Expires <DateTime>] -Paste <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Save-Secret.ps1 [-Name] <String> [-Title <String>] [-Description <String>] [-Note <String>] [-Uri <Uri>]
[-Created <DateTime>] [-Expires <DateTime>] -PasteForUser <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Save-Secret.ps1 [-Name] <String> [-Title <String>] [-Description <String>] [-Note <String>] [-Uri <Uri>]
[-Created <DateTime>] [-Expires <DateTime>] -PasteTextBytes <Encoding> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Save-Secret.ps1 GitHubToken -Paste securestring -Title 'PowerShell token' -Description 'A GitHub classic token' -Url https://github.com/settings/tokens -Expires (Get-Date).AddDays(90)
Stores the token from the clipboard.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SecureString
Parameter Sets: Secret
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: Uri
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-Date)
Accept pipeline input: False
Accept wildcard characters: False
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Paste
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: PasteForUser
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: Encoding
Parameter Sets: PasteTextBytes
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.