major change to override Write-Error func
This commit is contained in:
@@ -19,13 +19,13 @@ Import-Module -Name MSP360
|
||||
# Write-Output "Adding backup user account: ${MSP360Username}"
|
||||
# Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
|
||||
#}
|
||||
#Catch { LogErr $_.Exception.Message }
|
||||
#Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
# Set the agent edition
|
||||
# Note: the product edition must be set *after* the user is added
|
||||
Write-Output "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition"""
|
||||
Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
# Delete the desktop icon
|
||||
"${Env:PUBLIC}\Desktop\Emberkom Backup.LNK",
|
||||
|
||||
Reference in New Issue
Block a user