Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Latest commit

 

History

History
54 lines (33 loc) · 1.62 KB

New-ManagedCredential.README.md

File metadata and controls

54 lines (33 loc) · 1.62 KB

New-ManagedCredential

Secure encryption of credentials as SecureString.

Description

Secure encryption of credentials as SecureString, which can be saved as an xml-file or variable.

If user "A" encrypt the credentials on computer "A", user "B" cannot decrypt the credentials on computer "A" and also user "A" cannot decrypt the credentials on Computer "B".

Screenshot

To enter the credentials, the following window appears:

Screenshot

Syntax

Function

New-ManagedCredential [[-OutFile] <String>] [[-Credentials] <PSCredential>] [<CommonParameters>]

Script

.\New-ManagedCredential.ps1 [[-OutFile] <String>] [[-Credentials] <PSCredential>] [<CommonParameters>]

Example

Function

PS> $EncryptedCredential = New-ManagedCredential

PS> $EncryptedCredential

UsernameAsSecureString : c04fc297eb01000000edade3a984d5ca...
PasswordAsSecureString : 984d5ca4aa6c39de63b9627730000c22...

Script

PS> .\New-ManagedCredential.ps1 -OutFile E:\Temp\EncryptedCredentials.xml

Encrypted xml-file

Screenshot