CredentialsManager.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Credentials Manager module file
# Current version 0.9, November 2015

# File List
$FileList = @(
    'Read-Credential.ps1',
    'Write-Credential.ps1')

# Import all files from file list
foreach ($File in $FileList) {
    . (Join-Path -Path $PSScriptRoot -ChildPath $File) # -Verbose:$False
}

if (!($Script:CredentialsPath)) {
    $Script:CredentialsPath = Join-Path -Path $env:APPDATA -ChildPath 'CredentialsManager'
    }