Skip to main content

PowerShell Transcript Files

Transcripts record full PowerShell session output to text files. May contain credentials typed by admins.

Check if Enabled

Default Locations

Find Transcripts

Search for Credentials


PowerShell History (PSReadLine)

Default Location

Search All Users

Search for Passwords


Module Logging

Records which PowerShell modules are loaded and executed.

Check if Enabled

Read Logs


Script Block Logging

Records all PowerShell code executed, including decoded/deobfuscated commands.

Check if Enabled

Read Logged Script Blocks

Search for Credentials in Logs


PSCredential Objects in Scripts

Admins often hardcode credentials:

Search for These Patterns


Decrypt SecureString (If Same User)

If you find a saved SecureString:

From File

SecureString is user + machine specific (DPAPI). Only works if decrypted on same machine by same user who encrypted it.

Quick Reference