Start PowerShell as Admin and execute the following command:
GET-CREDENTIAL –Credential ( Get-Credential ) | EXPORT-CLIXML "C:\folder\SecureCredentials.xml" |
A prompt will pop up to add credentials. Add them
and then go to C:\folder\ in order to check that the file is there.
In order to use the encrypted credentials use the following command:
$Credentials = IMPORT-CLIXML "C:\folder\SecureCredentials.xml" |