< Back
Get-1PEntry
Post
NAME Get-1PEntry
SYNOPSIS
Gets encrypted 1Password entries and their associated metadata.
SYNTAX
Get-1PEntry [[-Name] <String>] [[-VaultPassword] <SecureString>] [-VaultPath <String>] [<CommonParameters>]
DESCRIPTION
Gets one or more encrypted 1Password entries by name, along with associated metadata.
The 'agilekeychain' vault format leaves entry metadata in plaintext, so no password is required for this operation.
The 'opvault' vault format encrypts all entry metadata, so a password is required if this operation is run
against an 'opvault' vault.
PARAMETERS
-Name <String>
Specifies the name of the 1Password entry.
A case-insensitive wildcard match is used.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultPassword <SecureString>
Specifies the 1Password vault password.
Required only if the 1Password vault is in 'opvault' format. In this case, if no value is specified,
the user will be prompted to enter password interactively.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultPath <String>
Specifies the root directory of the 1Password vault from which to read.
The default root directory can be read via Get-1PDefaultVaultPath, and changed via Set-1PDefaultVaultPath.
Required? false
Position? named
Default value ($script:DefaultVaultPath)
Accept pipeline input? false
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:\\># Gets an entry by name
PS ~$ Get-1PEntry gmail
Name Type LastUpdated Location
---- ---- ----------- --------
gmail Login 11/30/15 12:11:50 AM https://accounts.gmail.com/ServiceLogin
# show all available properties
PS ~$ Get-1PEntry gmail | Format-List *
Name : gmail
Id : 11C5741DE2294A1EB32FB088F5838951
VaultPath : /Users/calvin/Dropbox/1Password/1Password.agilekeychain
SecurityLevel : SL5
KeyId :
KeyData :
Location : https://accounts.gmail.com/ServiceLogin
Type : Login
CreatedAt : 10/28/15 11:21:15 PM
LastUpdated : 11/30/15 12:11:50 AM
EncryptedData : U2FsdGVkX19ESuKr39T+d4185iU1NzMhKcfffu8 ...
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Gets the list of all 1Password entries, sorted by last modified time
PS ~$ Get-1PEntry | Sort-Object LastUpdated
Name Type LastUpdated Location
---- ---- ----------- --------
Twitter Login 11/29/15 11:53:44 PM https://twitter.com/
Github Login 11/29/15 11:58:12 PM https://github.com/login
Facebook Login 11/30/15 12:02:04 AM https://www.facebook.com/login.php
Linkedin Login 11/30/15 12:09:11 AM https://www.linkedin.com/uas/login-submit
...
RELATED LINKS
SYNOPSIS
Gets encrypted 1Password entries and their associated metadata.
SYNTAX
Get-1PEntry [[-Name] <String>] [[-VaultPassword] <SecureString>] [-VaultPath <String>] [<CommonParameters>]
DESCRIPTION
Gets one or more encrypted 1Password entries by name, along with associated metadata.
The 'agilekeychain' vault format leaves entry metadata in plaintext, so no password is required for this operation.
The 'opvault' vault format encrypts all entry metadata, so a password is required if this operation is run
against an 'opvault' vault.
PARAMETERS
-Name <String>
Specifies the name of the 1Password entry.
A case-insensitive wildcard match is used.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultPassword <SecureString>
Specifies the 1Password vault password.
Required only if the 1Password vault is in 'opvault' format. In this case, if no value is specified,
the user will be prompted to enter password interactively.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultPath <String>
Specifies the root directory of the 1Password vault from which to read.
The default root directory can be read via Get-1PDefaultVaultPath, and changed via Set-1PDefaultVaultPath.
Required? false
Position? named
Default value ($script:DefaultVaultPath)
Accept pipeline input? false
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:\\># Gets an entry by name
PS ~$ Get-1PEntry gmail
Name Type LastUpdated Location
---- ---- ----------- --------
gmail Login 11/30/15 12:11:50 AM https://accounts.gmail.com/ServiceLogin
# show all available properties
PS ~$ Get-1PEntry gmail | Format-List *
Name : gmail
Id : 11C5741DE2294A1EB32FB088F5838951
VaultPath : /Users/calvin/Dropbox/1Password/1Password.agilekeychain
SecurityLevel : SL5
KeyId :
KeyData :
Location : https://accounts.gmail.com/ServiceLogin
Type : Login
CreatedAt : 10/28/15 11:21:15 PM
LastUpdated : 11/30/15 12:11:50 AM
EncryptedData : U2FsdGVkX19ESuKr39T+d4185iU1NzMhKcfffu8 ...
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Gets the list of all 1Password entries, sorted by last modified time
PS ~$ Get-1PEntry | Sort-Object LastUpdated
Name Type LastUpdated Location
---- ---- ----------- --------
Twitter Login 11/29/15 11:53:44 PM https://twitter.com/
Github Login 11/29/15 11:58:12 PM https://github.com/login
Facebook Login 11/30/15 12:02:04 AM https://www.facebook.com/login.php
Linkedin Login 11/30/15 12:09:11 AM https://www.linkedin.com/uas/login-submit
...
RELATED LINKS