< Back

New-SavedCreds

Sat Jan 11, 2020 10:16 am

[b]NAME[/b] New-SavedCreds



[b]SYNOPSIS[/b]

Function to save credentials to the HKCU.





[b]SYNTAX[/b]

New-SavedCreds [-CredName] <String> [-Creds] <PSCredential> [-WhatIf] [-Confirm] [<CommonParameters>]





[b]DESCRIPTION[/b]

This function will save an encrypted credential to the HKCU hive of the current users' context.





[b]PARAMETERS[/b]

-CredName <String>

This is the name used to save the credentials under in the registry.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Creds <PSCredential>

This is an object containing a PSCredential.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

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).



[b]INPUTS[/b]



[b]OUTPUTS[/b]



[b]NOTES[/b]





Created by: Scott Thomas - scott@deathbyvegemite.com

Copyright (c) 2017. All rights reserved.