Files
syno-scripts/Powershell/Shutdown_V3/Modules/Credentials.md
T

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
```
}