< Back
Add-StoredCredentials
Post
NAME Add-StoredCredentials
SYNOPSIS
Adds credentials to the Windows Credential Manager
SYNTAX
Add-StoredCredentials [-UserName] <String> [[-Password] <String>] [[-Target] <String>] [[-Type] <String>]
[[-Comment] <String>] [<CommonParameters>]
DESCRIPTION
Adds credentials to the users Windows Credential Manager
PARAMETERS
-UserName <String>
User name for the credential
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <String>
The password for the credential, if not specified a secure entry box will promp for the password
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Target <String>
Target of the credentials to add, defaults to the UserName
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
The type of credential to be stored, 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? 4
Default value GENERIC
Accept pipeline input? false
Accept wildcard characters? false
-Comment <String>
Required? false
Position? 5
Default value
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.1
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-StoredCreentials -UserName SamDoe -Password $Password1! -Target https://my.account.com
Stores the user name and password as a generic entry for https://my.account.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-StoredCreentials -UserName SamDoe -Target https://my.account.com
Will prompt for the password then stores the user name and password as a generic entry for https://my.account.com
RELATED LINKS
https://www.mosaicmk.com/2019/07/creden ... odule.html
SYNOPSIS
Adds credentials to the Windows Credential Manager
SYNTAX
Add-StoredCredentials [-UserName] <String> [[-Password] <String>] [[-Target] <String>] [[-Type] <String>]
[[-Comment] <String>] [<CommonParameters>]
DESCRIPTION
Adds credentials to the users Windows Credential Manager
PARAMETERS
-UserName <String>
User name for the credential
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <String>
The password for the credential, if not specified a secure entry box will promp for the password
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Target <String>
Target of the credentials to add, defaults to the UserName
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
The type of credential to be stored, 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? 4
Default value GENERIC
Accept pipeline input? false
Accept wildcard characters? false
-Comment <String>
Required? false
Position? 5
Default value
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.1
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-StoredCreentials -UserName SamDoe -Password $Password1! -Target https://my.account.com
Stores the user name and password as a generic entry for https://my.account.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-StoredCreentials -UserName SamDoe -Target https://my.account.com
Will prompt for the password then stores the user name and password as a generic entry for https://my.account.com
RELATED LINKS
https://www.mosaicmk.com/2019/07/creden ... odule.html