Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9986

Veeam Backup for Microsoft 365 • Re: powershell script to count the instance specific warning message

$
0
0
I could not get all the warning of a job into an array so that I can loop through the array and check for specific warnings
I did manage to achive this using Excel however this involves a bit of manual work
- copy the warning to excel sheet; each warning gets copied in a cell, then use match formula to check for common warning anything that does not match use another formula to check for other common error and likewise so eventually anything which do not fall into these known warnings are unqiue and investigated
for example
I copy warning from each job protecting multiple mailboxes on the basis of Azure Dynamic Groups
1/17/2024 7:00:09 PM :: Processing mailbox XYZ completed with warning: Exchange account was not found ()..1000s of such entries in a job
and copy it to Excel sheet and use the following
=IF(ISNUMBER(SEARCH("Exchange account was not found", A2)), "Match", "No Match")
I then filter no Match and repeat the above formula to match another common warning
=IF(ISNUMBER(SEARCH("Mailbox does not have a valid Microsoft 365 license", A1890)), "Match", "No Match")
Finally anything that does not match I investigate

Is it possible to use a powershell script to achive this without this manual work; all I am looking for is to get a alert if there is a new type of warning so that I do not miss anything

Statistics: Posted by rtheseeker — Jan 20, 2024 7:35 am



Viewing all articles
Browse latest Browse all 9986

Latest Images

Trending Articles



Latest Images