Jason Lamb .ME Some stuff I think is cool and interesting, you might too!

October 15, 2026

A Tiny PowerShell Script for Numbered Web Test Pages

Filed under Powershell

Not every repository folder needs a grand origin story. The random-url folder contains numbered landing pages, and its PowerShell helper is short enough to understand at a glance.

The helper iterates through a range of numbers and writes a matching HTML filename containing a simple marker. The directory contains pages numbered zero through nine. These give a test link or QR destination a recognizable response when it is opened.

The distinction between a destination and a QR image matters here. The script creates the little web pages; it is not a QR-code rendering library. A separate code or link can point at those pages when a test needs distinct targets.

That is enough to make the files useful in a larger workflow. If several labels or redirects are being checked, landing on different markers makes it easier to see which destination was reached. There is no need to design ten complete sites just to tell the results apart.

The script also demonstrates how PowerShell can simplify repetitive setup. The task is not intellectually difficult, but manually creating similar files adds chances for inconsistent names and copy-paste mistakes. A loop makes the pattern explicit.

This is a small utility rather than a full application. Its value is proportional to the task it removes: create predictable targets, give each one an identifiable value, and move on to the thing those targets help test.

Explore the project on GitHub

Update history

These notes record article updates associated with repository changes. The original publication date is retained.

  • — Converted automated article narration to neutral third person and added public update history. No application functionality changed. GitHub source