Files
syno-scripts/Powershell/Shutdown/Modules/Credentials.psm1
T

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