Adding curly brakets to powershell command to fix issue with interpretation of variables (#2672)

This commit is contained in:
Jake H
2024-01-29 15:53:35 +00:00
committed by GitHub
parent c4fea7a287
commit a68803c0c3
+1 -1
View File
@@ -13,7 +13,7 @@ atomic_tests:
supported_platforms:
- windows
executor:
command: powershell -c "get-eventlog 'Security' | where {$_.Message -like '*SYSTEM*'} | export-csv $env:temp\T1654_events.txt"
command: powershell -c {get-eventlog 'Security' | where {$_.Message -like '*SYSTEM*'} | export-csv $env:temp\T1654_events.txt}
cleanup_command: powershell -c "remove-item $env:temp\T1654_events.txt -ErrorAction Ignore"
name: powershell
elevation_required: true