Skip to content

Commit

Permalink
Merge pull request #830 from Qazeer/PSHistory&UsageLogs-to-CSV
Browse files Browse the repository at this point in the history
Add PowerShell_ConvertPSHistoryTo-CSV & PowerShell_ConvertUsageLogsTo-CSV modules
  • Loading branch information
AndrewRathbun authored Jul 6, 2023
2 parents ec50b95 + 05542d0 commit 58b93b2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Modules/Apps/GitHub/PowerShell_ConvertPSHistoryTo-CSV.mkape
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Description: ConvertPSHistoryTo-CSV.ps1 - Export the ConsoleHost_history.txt file(s) into a single CSV file.
Category: ProgramExecution
Author: Thomas DIOT (Qazeer)
Version: 1.0
Id: bab1fd35-90f6-45b7-913b-32ac71b45ea7
BinaryUrl: https://gist.github.com/Qazeer/a0c1c14bb1eae233c1147d1d9dfb3e93
ExportFormat: CSV
Processors:
-
Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
CommandLine: "& '%kapeDirectory%\\Modules\\bin\\ConvertPSHistoryTo-CSV.ps1' -InputDir '%sourceDirectory%' -Destination %destinationDirectory%"
ExportFormat: CSV

# Documentation
# https://gist.github.com/Qazeer/a0c1c14bb1eae233c1147d1d9dfb3e93
# Convert ConsoleHost_history.txt files from the specified Source Directory into a single CSV file.
# Original script and KAPE module to copy the ConsoleHost_history.txt files from Andrew Rathbun and Matt Arbaugh.
17 changes: 17 additions & 0 deletions Modules/Apps/GitHub/PowerShell_ConvertUsageLogsTo-CSV.mkape
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Description: ConvertUsageLogsTo-CSV.ps1 - Export the Usage Logs file(s) into a single CSV file.
Category: ProgramExecution
Author: Thomas DIOT (Qazeer)
Version: 1.0
Id: 6fb52c8b-f325-4c08-b9cc-5aa11285b161
BinaryUrl: https://gist.github.com/Qazeer/6c655627962f034aa2b6e92594770ee2
ExportFormat: CSV
Processors:
-
Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
CommandLine: "& '%kapeDirectory%\\Modules\\bin\\ConvertUsageLogsTo-CSV.ps1' -InputDir '%sourceDirectory%' -Destination %destinationDirectory%"
ExportFormat: CSV

# Documentation
# https://gist.github.com/Qazeer/6c655627962f034aa2b6e92594770ee2
# Convert Usage Logs file(s) from the specified Source Directory into a single CSV file.
# Original script and KAPE module to copy the ConsoleHost_history.txt files from Andrew Rathbun and Matt Arbaugh.

0 comments on commit 58b93b2

Please sign in to comment.