PowerShell

PowerShell

How to Safely Interpret Added VS Code Agents in Copilot Usage Metrics

This article is a technical explanation and implementation example created using AI. Although the code and procedures pr...
PowerShell

Reading PATH Process, User, and Machine Differences in PowerShell: Troubleshooting Before GUI Changes

Compare the three scopes of Process, User, and Machine without modifying the PATH to troubleshoot why a command cannot be found.
PowerShell

Detecting Clipboard Changes in PowerShell Without Reading the Body: Win32 Sequence Number

Call GetClipboardSequenceNumber from PowerShell to monitor clipboard changes without storing the actual content.
PowerShell

Calling Win32 GetSystemPowerStatus from PowerShell: Directly observing power status

P/Invoke the Win32 API from PowerShell to observe AC power and battery status in read-only mode.
PowerShell

Inspecting Configuration JSON Before Changes with PowerShell Test-Json

Inspect JSON configurations in a read-only manner using Test-Json, observing syntax and differences in types and schemas.
PowerShell

Regularly Updating the On-Screen Time with PowerShell + WPF

Update text on a WPF screen at regular intervals to observe events.
PowerShell

Calling Win32 GetDpiForSystem from PowerShell: Viewing the Windows DPI Value

Call the Win32 API from PowerShell and observe the Windows DPI value.
PowerShell

Viewing TCP Connections Linked to Processes in PowerShell

Identify the executing process from the OwningProcess of a TCP connection.
PowerShell

Checking the Clipboard Locally with PowerShell + WPF: Inspecting State Without Saving Content

We explore an approach using the WPF Clipboard API to monitor character counts without saving content, building a confirmation UI to reduce accidental paste errors.
PowerShell

Things to Know Before Handling Windows Notifications with PowerShell

Before using Windows message display features from PowerShell, we examine the execution environment and API boundaries.