make the cloud backup update script require powershell 4 and make that the repo default for new scripts

This commit is contained in:
2026-11-17 10:43:19 -05:00
parent 2bbb07c05e
commit 4e766357cc
5 changed files with 37 additions and 13 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#Requires -Version 5.1
#Requires -Version 4.0
# Update an existing Emberkom MSP360 Managed Backup agent during an idle RMM window.
function Get-CloudBackupInstallation {
@@ -121,7 +121,7 @@ function Invoke-CloudBackupUpdate {
}
$ErrorActionPreference = 'Stop'
$updateLock = [Threading.Mutex]::new($false, 'Global\EmberkomCloudBackupUpdate')
$updateLock = New-Object -TypeName System.Threading.Mutex -ArgumentList $false,'Global\EmberkomCloudBackupUpdate'
$ownsLock = $false
try {
try { $ownsLock = $updateLock.WaitOne(0) }