make the cloud backup update script require powershell 4 and make that the repo default for new scripts
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user