@@ -14,17 +14,28 @@ Stores the token from the clipboard.
14
14
# Requires -Version 7
15
15
# Requires -Modules Microsoft .PowerShell .SecretManagement ,Microsoft .PowerShell .SecretStore
16
16
[CmdletBinding ()] Param (
17
+ # Specifies the name of the secret to add metadata to. Wildcard characters (`*`) are not permitted.
17
18
[Parameter (Position = 0 , Mandatory = $true )][string ] $Name ,
19
+ # Specifies the value of the secret.
18
20
[Parameter (ParameterSetName = ' Secret' , Position = 1 , Mandatory = $true )][securestring ] $Secret ,
21
+ # Title metadata field.
19
22
[string ] $Title ,
23
+ # Description metadata field.
20
24
[string ] $Description ,
25
+ # Note metadata field.
21
26
[string ] $Note ,
27
+ # Uri metadata field.
22
28
[uri ] $Uri ,
29
+ # Created date/time metadata field.
23
30
[datetime ] $Created = (Get-Date ),
31
+ # Expiration date/time metadata field.
24
32
[datetime ] $Expires ,
33
+ # Specifies the type to interpret the text on the clipboard as for use as the secret value.
25
34
[Parameter (ParameterSetName = ' Paste' , Mandatory = $true )]
26
35
[ValidateSet (' string' , ' securestring' , ' bytes' , ' hexbytes' )][string ] $Paste ,
36
+ # Specifies the username to combine with the clipboard text as a password to store as a credential secret.
27
37
[Parameter (ParameterSetName = ' PasteForUser' , Mandatory = $true )][string ] $PasteForUser ,
38
+ # Specifies the encoding to read the clipboard as, into a byte array secret.
28
39
[Parameter (ParameterSetName = ' PasteTextBytes' , Mandatory = $true )][Text.Encoding ] $PasteTextBytes
29
40
)
30
41
$clipboard = Get-Clipboard | Out-String
0 commit comments