Initialer Import der Synology Scripts
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
function Get-CredentialFromFile {
|
||||
param([string]$Path)
|
||||
|
||||
```
|
||||
if (!(Test-Path $Path)) {
|
||||
throw "Missing credential file: $Path"
|
||||
}
|
||||
|
||||
Import-Clixml -Path $Path
|
||||
```
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user