PS: Store Credential

This script stores credentials you enter as an encrypted string. This file can only be used by the same account, that created the file.


Requirements


Usage

Just run the script an provide a filename and password


Script code:

	
##------------------------------------------------------------------------------------------------
##
##  Store-Credential.ps1
##
##   Version 1.0.1
##
##	 (c) 2016 Martin Mueller
##		www.sh-soft.com
##
##  Licence: Feel free to use and redistribute this script!
##
##------------------------------------------------------------------------------------------------
<#
.SYNOPSIS
This script asks you for credentials and the stores them to a xml based file.
Those files can be used to import credentials on the same computer with the same account they have been created with.
#>
#Read filename from console
$CredentialFileName = Read-Host -Prompt "Path and filename for the credentials file"
Read-Host -AsSecureString | ConvertFrom-SecureString | Out-File -FilePath "$CredentialFileName"

	

Download the script:

>> Version 1.0.1 (current)
(MD5: 0df107dd0a1251dae4316ac72dacd1b1)
(SHA1: ee3d36832bd6d0bbb9df6d00ece988e0dc39e658)


>> syntax highlighting powered by highlight.js