12 lines
173 B
PowerShell
Executable File
12 lines
173 B
PowerShell
Executable File
function Get-CredentialFromFile {
|
|
param([string]$Path)
|
|
|
|
```
|
|
if (!(Test-Path $Path)) {
|
|
throw "Credential file not found: $Path"
|
|
}
|
|
|
|
return Import-Clixml -Path $Path
|
|
```
|
|
|
|
} |