Skip to content
FREE ACCOUNT · 5 scripts + 5 guide downloads every week · Full-access passes available worldwide
Try an example in the editor

Find weak Wi-Fi readings

Fictional report. Change a label, signal percentage or threshold to compare the output. The example reads only the text below and changes no device settings.

Matching readings

YOUR DAILY SUPPORT WORKBENCH

TypeScript Desk.

New scripts added regularly. Practical tasks for everyday IT support. See the latest additions →

Find the task. Tailor the script. Keep your work.

52 distinct scripts · Search by task, subject or library · TypeScript 5.x / Node.js 22+

Conceptual illustration of typescript support tools.

Start with a free account

Register once to choose 5 scripts and 5 guide downloads per week across all six desks. No card required. A full-access pass unlocks the complete library.

Create your free account or sign in →

SEARCH → TAILOR → REVIEW → COPY

Find your next script.

New to typescript? Start here ↓

TAILOR TO YOUR ENVIRONMENT

Choose a script

Setup and validation

Official documentation ↗
Review checks

Choose checks for the edited text. This page does not run your code.

FULL-ACCESS FEATURE

Explore modules & tools.

Full setup notes, discovery commands and module reference entries are reserved for paid access. Your weekly script allowance is available after sign-in.

Preview membership benefits →

UNDERSTAND WHAT YOU RUN

Modules, setup & testing.

Type-check before execution

Use an approved project with TypeScript 5.x and @types/node installed, and package.json set to "type": "module". Azure SDK examples also require the packages named in their requirements. Compile into a separate folder. These scripts use Node.js APIs and are not browser snippets.

tsc --strict --target ES2022 --module nodenext --moduleResolution nodenext --outDir dist script.ts
# Only after successful checks and review:
node dist/script.js

Modules and types

TypeScript adds compile-time checks; it does not validate JSON or external input at runtime. Use explicit guards on unknown values. The library examples demonstrate both types and runtime checks.

const value: unknown = JSON.parse(input);
if (typeof value !== "object" || value === null) {
  throw new Error("Expected an object");
}

Review compiler configuration

Use a project-local compiler, strict checks and a reviewed dependency lockfile. A syntax transformation is not the same as a full type-check. Build instructions here assume Node.js type definitions are available.

tsc --version
tsc --noEmit --strict --target ES2022 --module nodenext --moduleResolution nodenext script.ts

Keep changes intentional

Tailor parameters, read every file path and inspect the output on sample data. Nothing in this page is executed against your devices. Export runbooks to retain edited copies.

// Prefer unknown over any for untrusted input.
// Runtime validation still matters after a clean build.

YOUR LOCAL WORKSPACE

Build a support runbook.

Saved in this browser only. Export before clearing browser data. Do not store credentials or confidential customer data.

BROWSE THE LIBRARY

TypeScript tasks, by subject.

Browse 78 distinct tasks. Choose 5 scripts and 5 guide downloads per week with a free account. An active full-access pass unlocks the complete library.

Configuration · 3 tasks
  • Validate a service configuration

    Validate a JSON service definition using explicit runtime checks, not a type assertion.

    Runtime type guards · TypeScript 5.x / Node.js 22+
  • Audit boolean feature flags

    Report flags that are not explicitly boolean; does not rewrite the configuration.

    Record type validation · TypeScript 5.x / Node.js 22+
  • Compare required configuration keys without showing values

    Input {"baseline":{"PORT":80},"actual":{}}. Compares top-level keys and JavaScript types; never prints values. Does not validate nested configuration.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Service desk · 9 tasks
  • Summarise tickets by priority

    Validate a JSON ticket array and count tickets in each priority without printing subjects.

    Discriminated string unions · TypeScript 5.x / Node.js 22+
  • Calculate restoration time for closed incidents

    Input [{"started":"2026-01-01T00:00:00Z","restored":"2026-01-01T00:30:00Z"}]. Calendar elapsed time, not business hours or SLA compliance.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Find active tickets without a responsible owner

    Input [{"id":"INC1","status":"open","owner":null}]. Closed and resolved statuses are excluded; adapt these labels to your ticket system. No ticket contents printed.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Flag open tickets exceeding an age threshold

    Validate a JSON ticket export and identify open tickets older than the configured hours. This measures elapsed time, not business-hours SLA compliance.

    node:fs, Date · TypeScript 5.x / Node.js 22+
  • Find closed tickets lacking resolution evidence

    JSON rows: status and resolution strings. Count closed/resolved rows with a blank resolution; identifiers and text are omitted.

    node:fs · Node.js 20+; TypeScript and @types/node; compile before running
  • Check remaining attempts before account lockout

    Use an authorised export containing failedAttempts and lockoutThreshold as nonnegative integers. Zero threshold means lockout disabled. Shows counts only and makes no sign-in attempts; policies and observation windows must match your export.

    node:fs · TypeScript 5.x and Node.js 20+; compile before running
  • Find conflicting IPv4 DHCP reservations

    JSON rows contain address and clientId from one DHCP scope. Detect one address assigned to multiple client IDs. This is an export consistency check, not a network probe or proof of an active address conflict.

    node:fs / node:net · TypeScript 5.x and Node.js 20+; compile before running
  • Validate ticket event chronology

    Inspect a sanitised JSON array of ticket event timestamps for invalid UTC ISO timestamps or backwards ordering. Reports row numbers only. Does not alter tickets. Maximum input size 1 MiB.

    node:fs · TypeScript 5.x and Node.js 20+; compile before running
  • Detect repeated support-queue handoffs in one ticket

    Inspect a chronological JSON array of anonymised team names for returns to an earlier queue. Consecutive repeats are ignored. A return is a review signal, not proof of an incorrect assignment.

    node:fs / runtime validation · TypeScript 5.x and Node.js 20+; compile before running
Operations · 2 tasks
  • Check a UTC maintenance window

    Validate timezone-qualified dates and check whether the current time lies in the window.

    Date validation · TypeScript 5.x / Node.js 22+
  • Flag stale backup inventory entries

    Validate an exported backup inventory and flag records older than 24 hours. Does not establish restorability.

    node:fs/promises · TypeScript 5.x with Node.js 22+
Development · 1 tasks
  • Validate a deployment manifest

    Check artifact version, HTTPS download URL and SHA-256 shape without fetching or deploying.

    Object validation · TypeScript 5.x / Node.js 22+
Asset management · 4 tasks
Networking · 5 tasks
  • Group API statuses into classes

    Validate a JSON array of HTTP status numbers and summarise response classes.

    Typed reducers · TypeScript 5.x / Node.js 22+
  • Find duplicate host and port reservations

    Flag conflicting reservations for the same host, protocol and port without scanning any network.

    node:fs/promises · TypeScript 5.x with Node.js 22+
  • Find overlapping IPv4 subnet allocations

    Compare an array such as ["10.0.0.0/24","10.0.0.128/25"]. IPv4 only; O(n²), intended for small allocation lists. Host bits are normalised.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Flag DHCP scopes with low remaining lease capacity

    JSON rows: total, used, reserved (non-overlapping counts). Flag fewer than 10% addresses remaining. Export the counts from an authorised DHCP console.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
  • Find duplicate unicast MAC addresses in an asset export

    JSON rows: mac. Normalise colon, hyphen or unseparated 12-hex forms and report conflicting row positions. Randomised/local addresses are not inherently wrong.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Diagnostics · 1 tasks
Azure · 4 tasks
  • List Azure resource groups with the SDK

    List Azure resource groups with the SDK. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • List subscription tag names with the SDK

    List subscription tag names with the SDK. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • Inventory resources in an Azure group

    Inventory resources in an Azure group. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
  • Check Azure provider registration

    Check Azure provider registration. Adapted from Azure-Samples/azure-sdk-for-js-samples with retained MIT licence.

    @azure/identity / @azure/arm-resources · TypeScript 5.x / Node.js 22+ and Azure SDK packages
Security · 1 tasks
Reliability · 2 tasks
Storage · 2 tasks
  • Estimate storage runway from daily growth

    Estimate days until capacity is exhausted using an exported free-space and daily-growth inventory.

    node:fs/promises · TypeScript 5.x with Node.js 22+
  • Find mixed units in a storage quota export

    JSON rows: usedUnit and quotaUnit strings. Count mismatches before calculating headroom; MB and MiB are not interchangeable.

    node:fs · Node.js 20+; TypeScript and @types/node; compile before running
Change management · 1 tasks
  • Detect overlapping approved change windows

    Input [{"id":"CHG1","start":"2026-01-01T00:00:00Z","end":"2026-01-01T01:00:00Z"}]. Half-open intervals; touching windows do not collide. Does not infer affected services.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Web support · 2 tasks
  • Review captured HTTP security headers offline

    Input a JSON object of response headers captured separately. Offline presence checks only; not a security certification. HSTS is relevant to HTTPS.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
  • Flag unexpected hosts in an exported redirect list

    Input {"allowedHosts":["example.com"],"urls":["https://example.com/path"]}. Exact host matching only; no requests, URL paths or query secrets printed.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Logs · 1 tasks
  • Find gaps in an exported event sequence

    Input [100,101,104]. Detect missing ranges and repeated sequence numbers without generating every missing value. Only meaningful for one ordered event stream; resets must be split first.

    Node.js built-ins · TypeScript 5.9+, Node.js 22+
Licence operations · 1 tasks
Monitoring · 2 tasks
  • Count monitoring alert state transitions

    Count state flips per monitor in a timestamped JSON export of monitor, time and state. Input is sorted per monitor; duplicate times are rejected.

    node:fs · TypeScript 5.x / Node.js 22+
  • Find gaps between expected and received monitoring samples

    JSON rows: expected and received nonnegative safe integers. Count missing samples, and separately flag received counts above expected.

    node:fs · Node.js 20+; TypeScript and @types/node; compile before running
User account support · 1 tasks
  • Summarise sign-in failures by error code

    Summarise a sanitised JSON export with success and errorCode fields. No usernames or IPs are printed; counts help identify common failure reasons without changing accounts.

    node:fs · TypeScript 5.x / Node.js 22+
Application deployment · 2 tasks
API troubleshooting · 1 tasks
Printing · 1 tasks
  • Flag old print jobs that have stopped progressing

    JSON rows: ageMinutes, bytesPrinted, lastBytesPrinted. Flag jobs older than 30 minutes with unchanged counters; the two counters must be separate observations.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Microsoft 365 · 2 tasks
  • Estimate mailbox quota headroom from exported sizes

    JSON rows: usedBytes, quotaBytes. Report percentage and bytes remaining; quotaBytes=0 is treated as unknown, not unlimited. No mailbox connections.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
  • Count unexpectedly disabled Microsoft 365 service plans

    JSON rows: requiredPlans and disabledPlans arrays of plan IDs from a sanitised licence export. Count intersections; licensing dependencies and entitlement remain separate checks.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Services · 1 tasks
  • Compare service startup modes with an approved baseline

    JSON rows: expectedMode, actualMode; values automatic, delayed, manual or disabled. Report mismatched rows without changing a service.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Patch management · 1 tasks
  • Find missing approved patch IDs in an endpoint export

    JSON rows: required and installed arrays of patch identifiers. Uses exact comparison with your approved baseline; does not query CVEs or decide patch applicability.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Intune · 1 tasks
  • Count Intune compliance policy states from a sanitised export

    JSON rows: state with compliant, noncompliant, error, conflict, unknown or notApplicable. Count explicit states without claiming the device is secure or remediating it. These are normalised input labels, not a native Intune export schema; map the report states explicitly.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
VPN support · 1 tasks
  • Find ambiguous equal-priority VPN routes in a proposed routing export

    JSON rows: destination, prefixLength, metric and interfaceAlias. Detect identical destination/prefix/metric on different interfaces. No route is installed and input destinations must already be canonical.

    Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before running
Administration · 1 tasks
Devices · 1 tasks
Backup · 1 tasks
  • Flag backup recovery points outside their RPO

    JSON rows: ageMinutes and rpoMinutes, finite nonnegative numbers. Compare supplied ages with the approved recovery-point objective; no backup system connection.

    node:fs · Node.js 20+; TypeScript and @types/node; compile before running
Windows updates · 1 tasks
Support diagnostics · 1 tasks
  • Interpret a Retry-After response header

    Convert a copied delay or HTTP-date to a suggested wait. Makes no network request and does not automatically retry an operation.

    TypeScript / Date · TypeScript 5+; compile before running
Device and gaming diagnostics · 8 tasks
  • Match gaming interruptions to connection outages

    Analyse a local JSON object with interruptions and outages arrays of start/end ISO timestamps. Output only overlap counts.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Find common display modes across a connection chain

    Input an array of components, each with a modes array of exact strings. Uses your supplied specifications; does not certify cable bandwidth.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Compare declared dock power with laptop demand

    Input sourceW, dockReserveW, peripheralW and laptopRequiredW. Arithmetic only; voltage profiles, cables and manufacturer compatibility still matter.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Flag save backups older than the chosen limit

    Input now, maxAgeHours and backups array with completedAt timestamps. Reads your inventory; does not access cloud saves.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Compare installed driver versions with an approved inventory

    Input installed and approved arrays with device and version strings. Exact matching only; does not assume larger version strings are better.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Compare supplied game requirements with a PC inventory

    Input numeric required and available objects with matching units. Does not infer GPU performance or software compatibility from names.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Compare measured Wi-Fi throughput by room

    Input samples array with room and mbps. Reports per-room mean from your measurements; different servers or times can invalidate comparison.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
  • Find overlapping planned device-update windows

    Input windows with start/end ISO timestamps. Reports index pairs only so device names and account data need not be printed.

    Node.js / typed data checks · TypeScript 5+ with @types/node; compile for Node.js 20+
Everyday device checks · 2 tasks
  • Estimate a photo print size without upscaling

    Enter image pixel dimensions and desired print density. Reports maximum size in inches and centimetres; it cannot assess focus, colour or printer quality.

    TypeScript numeric validation · TypeScript 5+; Node.js 20+
  • Estimate download time from size and connection speed

    Enter a decimal GB download size and Mbps connection speed. Shows ideal and 70%-throughput estimates, excluding installation time; this is not a speed test.

    TypeScript numeric validation · TypeScript 5+; Node.js 20+
Everyday troubleshooting · 11 tasks
  • Check a USB-C charger power budget

    Enter the charger total, laptop requirement and other-device watts. Estimates total headroom only; the charger must also support the correct USB-PD profile, per-port allocation and cable rating. Never assumes compatibility from watts alone.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Compare monitor pixel density before choosing scaling

    Enter the native horizontal/vertical pixels and screen diagonal in inches. Calculates approximate PPI to explain why text appears smaller on a different screen. Does not change display scaling.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Estimate an uncompressed scanned page size

    Enter page width/height in inches and scan DPI. Estimates 24-bit RGB uncompressed bytes to explain very large scans. Compression, alpha channels and multipage files change actual size.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Check text contrast between two screen colours

    Enter foreground and background colours as six-digit hex values. Calculates WCAG contrast for solid opaque colours; cannot assess gradients, image backgrounds, font size or an entire page.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Calculate paper and blank pages for a folded booklet

    Enter the number of document pages and copies. Estimates sheets for a folded, double-sided booklet with four document pages per sheet. It does not reorder pages or change printer settings.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Check photo size for a planned print

    Calculate print dimensions at a chosen pixel density. Helps explain a low-resolution print warning without uploading any photograph.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Estimate why an attachment exceeds an email size limit

    Calculate base64 encoding overhead before attaching a file. This is a lower-bound estimate: mail headers, line breaks and message text also consume space.

    TypeScript / Node.js · TypeScript 5+; Node.js 22+ (compile before running)
  • Estimate upload time using your upload speed

    Calculate the ideal upload time from file size in decimal MB and upload speed in Mbps. Makes the bits-versus-bytes difference explicit; overhead and a shared connection can make actual uploads slower.

    typescript · Node.js 22+; compile TypeScript first if applicable
  • Check whether a backup restore fits your recovery-time target

    Estimate transfer plus preparation time using backup GiB, measured restore MiB/s and preparation minutes. Compare with your target. Decompression, verification and application startup may add time; test restores are still required.

    typescript · TypeScript 5.x; compile first; Node.js 22+
  • Check how many labels fit a printable sheet

    Calculate a fixed-orientation label grid using printable area, label size and gaps in millimetres. Enter dimensions after subtracting printer margins. Does not create a print job or account for manufacturer offsets.

    typescript · TypeScript 5.x; compile first; Node.js 22+
  • Compare dock host power with a laptop requirement

    Edit the two documented wattage values, compile with tsc dock-power.ts, then run node dock-power.js. Use the dock output to its host, not the power adapter input. This offline comparison does not certify compatibility.

    typescript · TypeScript; compile targeting ES2015 or newer

Validate data at runtime

Treat imported JSON as unknown and check its shape before use. A type assertion changes the compiler view; it does not validate outside data.

Official documentation ↗

Guidance reviewed 11 October 2026. Script results still depend on permissions, installed versions and your environment.

SUPPORT PLAYBOOK

Validate IT inventory exports with TypeScript

Catch missing or mismatched device information before importing an export.

SUPPORT PLAYBOOK

Unexpected API data in TypeScript

Handle unexpected API responses before they break the page or corrupt an import.

SUPPORT PLAYBOOK

Find the cause when repeated fixes have not worked

Stop repeating unsuccessful resets and narrow a recurring fault with one useful comparison.

SUPPORT PLAYBOOK

How to interpret a Retry-After response header

Respect an API retry delay without creating duplicate actions.

Before running a script: prerequisites, impact and validation

Read the selected task’s platform, module and permissions. Replace every example value with your approved target. No script runs on this website.

Validation is not certification. Library and syntax checks do not prove a script will work in your tenant. A task without a documented execution result must be treated as not execution-verified in your environment. Read-only diagnostics can still reveal sensitive data.

For changes: obtain approval, make a backup where applicable, document rollback and test in a safe environment. Open the script preflight checklist.

Explore example tasks in this library

Choose a task to open its summary in the script selector. Review requirements before using your weekly free choice or active pass.

Step-by-step setup and troubleshooting guides · Compare all six script libraries