12 lines
164 B
Markdown
Executable File
12 lines
164 B
Markdown
Executable File
function Get-CredentialFromFile {
|
|
param([string]$Path)
|
|
|
|
```
|
|
if (!(Test-Path $Path)) {
|
|
throw "Missing credential file: $Path"
|
|
}
|
|
|
|
Import-Clixml -Path $Path
|
|
```
|
|
|
|
} |