Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.64 KB

Get-ManagedCredential.README.md

File metadata and controls

54 lines (34 loc) · 1.64 KB

Get-ManagedCredential

Secure decryption of encrypted credentials.

Description

Secure decryption of encrypted credentials, which have been stored in 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

Syntax

Function

Get-ManagedCredential [[-EncryptedCredential] <Object>] [[-FilePath] <String>] [[-AsPlainText]] [<CommonParameters>]

Script

.\Get-ManagedCredential.ps1 [[-EncryptedCredential] <Object>] [[-FilePath] <String>] [[-AsPlainText]] [<CommonParameters>]

Example

Function

PS> Get-ManagedCredential -EncryptedCredential $EncryptedCredentials

UserName                Password
--------                --------
Admin                   System.Security.SecureString

Script

PS> .\Get-ManagerdCredential.ps1 -FilePath E:\Temp\EncryptedCredentials.xml -AsPlainText

Username                Password
--------                --------
Admin                   PowerShell

Encrypted xml-file

Screenshot