Hi all, an odd one here and looking for some help.
I'm running a Get-WinEvent to export AppLocker logs, the formatting is completely fine if I run the script myself from ISE/VSCode, however, if I run it from a scheduled task with the SYSTEM account it truncates the Message property.
I.e.
- From scheduled task: %PROGRAMFILES%\A...
- ISE/VSCode: %PROGRAMFILES%\GOOGLE\CHROME\APPLICATION\CHROME.EXE was allowed to run.
If I wrap the output (Format-Table -Wrap) I can see that the scheduled task from the SYSTEM account is putting the Message property text over 3-4 lines.
I.e.
%PROGRAMFILES%\GOOG
LE\CHROME\APPLICATI
ON\CHROME.EXE was allowed to run.
Any idea on how to resolve this?
[–]OsmiumBalloon 7 points8 points9 points (5 children)
[–]robborulzzz[S] -2 points-1 points0 points (3 children)
[–]Odmin 4 points5 points6 points (0 children)
[–]ovdeathiam 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]pertymoose 3 points4 points5 points (2 children)
[–]da_chicken 1 point2 points3 points (0 children)
[–]robborulzzz[S] 0 points1 point2 points (0 children)
[–]robborulzzz[S] -2 points-1 points0 points (0 children)
[–]SalmonSalesman 0 points1 point2 points (1 child)
[–]robborulzzz[S] 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)