Initialer Import der Synology Scripts

This commit is contained in:
root
2026-08-05 08:43:57 +02:00
commit 5e32a7c411
404 changed files with 79932 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
function Connect-ToVCenter {
param(
[string]$Server,
[pscredential]$Credential
)
```
Import-Module VMware.PowerCLI -ErrorAction Stop
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
Invoke-Retry -Name "vCenter connect" -Action {
Connect-VIServer -Server $Server -Credential $Credential -ErrorAction Stop | Out-Null
}
```
}