Skip to content

Instantly share code, notes, and snippets.

View AndrewRathbun's full-sized avatar
🏠
Working from home

Andrew Rathbun AndrewRathbun

🏠
Working from home
View GitHub Profile
@AndrewRathbun
AndrewRathbun / ThumbCache
Created June 27, 2023 14:25 — forked from EricZimmerman/ThumbCache
ThumbCache*.db parser
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;
using System.Threading.Tasks;
@AndrewRathbun
AndrewRathbun / ConvertPSHistoryTo-CSV.ps1
Created July 7, 2023 14:37 — forked from Qazeer/ConvertPSHistoryTo-CSV.ps1
Convert PowerShell ConsoleHost_history.txt files from the specified Source Directory into a single CSV file.
<#
.SYNOPSIS
Convert PowerShell ConsoleHost_history.txt files from the specified Source Directory into a single CSV file.
Original script to copy the ConsoleHost_history.txt files from Andrew Rathbun and Matt Arbaugh: https://github.com/AndrewRathbun/DFIRPowerShellScripts/blob/main/Move-KAPEConsoleHost_history.ps1
.PARAMETER InputDir
Specify the folder which contains the ConsoleHost_history.txt file(s). Ideally, the C:\ or C:\Users|Utilisateurs|Usuarios|Benutzer directory in order to grab the file(s) from all users.
.PARAMETER Destination
Specify the folder where the ConsoleHost_histories.csv file will be placed.
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\powerlevel10k_rainbow.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -PredictionSource history