Adding check to veeam module if av blocks execution

main
Alex 2023-08-13 14:42:30 +02:00
parent e3b3b45328
commit 6d864db26c
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,9 @@ class CMEModule:
if "CLIXML" in output: if "CLIXML" in output:
output = self.stripXmlOutput(context, 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 # Stripping whitespaces and newlines
output_stripped = [" ".join(line.split()) for line in output.split("\r\n") if line.strip()] output_stripped = [" ".join(line.split()) for line in output.split("\r\n") if line.strip()]