< Back

Get-PasswordStateListPasswords

Sat Jan 18, 2020 6:39 pm

NAME Get-PasswordStateListPasswords



SYNOPSIS

Get all passwords in a PasswordState list.





SYNTAX

Get-PasswordStateListPasswords [-ApiKey] <PSCredential> [-PasswordListId] <Int32> [[-Endpoint] <String>]

[[-Format] <String>] [-UseV6Api] [-ExcludePasswords] [<CommonParameters>]





DESCRIPTION

Get all passwords in a PasswordState list.





PARAMETERS

-ApiKey <PSCredential>

The API key for the password list



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PasswordListId <Int32>

The Id of the password list in PasswordState.



Required? true

Position? 2

Default value 0

Accept pipeline input? False

Accept wildcard characters? false



-Endpoint <String>

The Uri of your PasswordState site. (i.e. https://passwordstate.local)



Required? false

Position? 3

Default value (_GetDefault -Option 'api_endpoint')

Accept pipeline input? False

Accept wildcard characters? false



-Format <String>

The response format from PasswordState. Choose either json or xml.



Required? false

Position? 4

Default value Json

Accept pipeline input? False

Accept wildcard characters? false



-UseV6Api [<SwitchParameter>]

PasswordState versions prior to v7 did not support passing the API key in a HTTP header but instead expected

the API key to be passed as a query parameter. This switch is used for backwards compatibility with older

PasswordState versions.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ExcludePasswords [<SwitchParameter>]

Exclude the password from return results.



Required? false

Position? named

Default value False

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



NOTES









-------------------------- EXAMPLE 1 --------------------------



$passwords = Get-PasswordStateListPasswords -ApiKey $key -PasswordListId 1234 -Endpoint

'https://passwordstate.local'



Get all password entries from list ID 1234

-------------------------- EXAMPLE 2 --------------------------



$passwords = Get-PasswordStateListPasswords -ApiKey $key -PasswordListId $id -Endpoint

'https://passwordstate.local' -format xml



Get all password entries from list ID 1234 in XML format

-------------------------- EXAMPLE 3 --------------------------



Get-PasswordStateListPasswords -ApiKey $key -PasswordListId 1234 -Endpoint 'https://passwordstate.local' | fl



Get all password entries from list ID 1234 and pipe to Format-List



RELATED LINKS