Overhaul of event viewer log export to CSV (optimization, bug fix)
Removed forced resizing of console and instead modified the default Out-File width (optimization)
Removed copy of %ProgramData%\Veeam\Backup if the script was executed on the VBR server as this could potentially be a massive folder (enhancement, quality-of-life, optimization)
Added extensionless file to exported zip archive letting the engineer know if this script was ran on the VBR server as this is not the typical use case (quality-of-life)
Redirected various output to null that wasn't intended to be sent to console (cosmetics)
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Tested on Windows 10 running VBR (for testing that code properly detects that it is running on a VBR server)
Tested on Windows Server 2012R2 -> Windows Server 2022 (non-VBR) to simulate being ran on typical non-VBR servers.
Checklist (check all applicable):
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard to understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
Type of change
How Has This Been Tested?
Checklist (check all applicable):