PowerShell

PowerShell

Why Does the Windows Screen Freeze? — Peeking into the Win32 Message Loop from PowerShell

Observe Click events using a minimal PowerShell + WinForms GUI, and experience firsthand why the Win32 message loop and UI thread freeze.
PowerShell

How Many Threads Are in a Process? — Observing Reality with PowerShell

Read the current PowerShell process and observe how multiple threads exist within a single PID.
PowerShell

Base64 Is Not Encryption: Visually Confirming Reversibility with PowerShell

Encode and decode Base64 in PowerShell to visually understand the difference between encoding and encryption.
PowerShell

Observing Win32 Window Handles with PowerShell

Read MainWindowHandle of a GUI process from PowerShell and observe the Win32 HWND.
PowerShell

Inspecting PowerShell for Dangerous Paths and Oversized Extractions Before Expanding ZIP Files

Before expanding a ZIP file, use PowerShell to inspect paths that extend outside the destination directory, total size, file count, and unexpected extensions.
PowerShell

Consolidating duplicate FileSystemWatcher events in PowerShell: Trying out debounce

This article explains how to observe duplicate Changed events occurring in a short time with FileSystemWatcher and use debounce to consolidate subsequent processing into a single execution.
PowerShell

Modifying environment variables in PowerShell and verifying with the GUI: The differences between Process, User, and Machine

Manipulate dummy environment variables at the Process and User scopes, and compare the Windows environment variable GUI with the PowerShell display.
PowerShell

Calling WinRT Directly from PowerShell: Observing Windows Power States with PowerManager

A minimal smoke test to call WinRT's PowerManager directly from Windows PowerShell 5.1 and read remaining battery capacity and power supply status.
PowerShell

Catching the Exact Moment a File Arrives in a Folder — Change Monitoring with PowerShell + FileSystemWatcher

Use the .NET FileSystemWatcher from PowerShell to monitor creations, modifications, deletions, and renames in a folder as events.
PowerShell

Verifying If Two Files Are Truly Identical — Using SHA-256 in PowerShell

Calculate SHA-256 using PowerShell's Get-FileHash to check if two files have identical contents. Also explains differences from file sizes, behavior when a single character is changed, and verification against distribution hashes.