From 6d864db26c4470f460bd54e4250292c727ae7570 Mon Sep 17 00:00:00 2001 From: Alex <61382599+NeffIsBack@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:42:30 +0200 Subject: [PATCH] Adding check to veeam module if av blocks execution --- cme/modules/veeam_dump.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cme/modules/veeam_dump.py b/cme/modules/veeam_dump.py index 065527f6..e2092a79 100644 --- a/cme/modules/veeam_dump.py +++ b/cme/modules/veeam_dump.py @@ -148,6 +148,9 @@ class CMEModule: if "CLIXML" in output: output = self.stripXmlOutput(context, output) + if "Access denied" in output: + context.log.fail("Access denied! This is probably due to an AntiVirus software blocking the execution of the PowerShell script.") + # Stripping whitespaces and newlines output_stripped = [" ".join(line.split()) for line in output.split("\r\n") if line.strip()]