< Back
Get-StoredCredentials
Post
NAME Get-StoredCredentials
SYNOPSIS
Gets the specified credentails stored in Credential Manager
SYNTAX
Get-StoredCredentials [-Target] <String> [[-Type] <String>] [<CommonParameters>]
DESCRIPTION
Gets the specified credentials stored in Credential Manager as a PSCredential object.
PARAMETERS
-Target <String>
Target of the credentials to get, if no target was specified in the create command the target will be the
username
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
The type of credential to be removed, Defualts to GENERIC
Valid values are: "GENERIC", "DOMAIN_PASSWORD", "DOMAIN_CERTIFICATE",
"DOMAIN_VISIBLE_PASSWORD", "GENERIC_CERTIFICATE", "DOMAIN_EXTENDED",
"MAXIMUM", "MAXIMUM_EX"
more information on credentail types can be found at this link
https://docs.microsoft.com/en-us/window ... redentiala
Required? false
Position? 2
Default value GENERIC
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
Copyright (C) MosaicMK Software LLC - All Rights Reserved
Unauthorized copying of this application via any medium is strictly prohibited Proprietary and confidential
Written by MosaicMK Software LLC (contact@mosaicmk.com)
By using this software you agree to the following:
Agreement Permission is hereby granted, free of charge, to any person or organization obtaining a copy of this
software and associated documentation files (the 'Software'),
to deal in the Software and the rights to use and distribute the software so long a no licensing and or
documentation files are remove, revised or modified
the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
Contact: Contact@MosaicMK.com
Version 1.0.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Creds = Get-StoredCredentials -Target https://my.account.com
Gets the credentials for https://my.account.com and stores them in the $Creds variable
The credenatials can then be used in a command the accepts a PSCredential object like
New-PSSession -ComputerName MyComputer -Credential $Creds
RELATED LINKS
https://www.mosaicmk.com/2019/07/creden ... odule.html
SYNOPSIS
Gets the specified credentails stored in Credential Manager
SYNTAX
Get-StoredCredentials [-Target] <String> [[-Type] <String>] [<CommonParameters>]
DESCRIPTION
Gets the specified credentials stored in Credential Manager as a PSCredential object.
PARAMETERS
-Target <String>
Target of the credentials to get, if no target was specified in the create command the target will be the
username
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
The type of credential to be removed, Defualts to GENERIC
Valid values are: "GENERIC", "DOMAIN_PASSWORD", "DOMAIN_CERTIFICATE",
"DOMAIN_VISIBLE_PASSWORD", "GENERIC_CERTIFICATE", "DOMAIN_EXTENDED",
"MAXIMUM", "MAXIMUM_EX"
more information on credentail types can be found at this link
https://docs.microsoft.com/en-us/window ... redentiala
Required? false
Position? 2
Default value GENERIC
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
Copyright (C) MosaicMK Software LLC - All Rights Reserved
Unauthorized copying of this application via any medium is strictly prohibited Proprietary and confidential
Written by MosaicMK Software LLC (contact@mosaicmk.com)
By using this software you agree to the following:
Agreement Permission is hereby granted, free of charge, to any person or organization obtaining a copy of this
software and associated documentation files (the 'Software'),
to deal in the Software and the rights to use and distribute the software so long a no licensing and or
documentation files are remove, revised or modified
the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
Contact: Contact@MosaicMK.com
Version 1.0.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Creds = Get-StoredCredentials -Target https://my.account.com
Gets the credentials for https://my.account.com and stores them in the $Creds variable
The credenatials can then be used in a command the accepts a PSCredential object like
New-PSSession -ComputerName MyComputer -Credential $Creds
RELATED LINKS
https://www.mosaicmk.com/2019/07/creden ... odule.html