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 →
New to scripts? Use the six-check starter checklist before running a download.
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
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+

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
TAILOR TO YOUR ENVIRONMENT
Choose checks for the edited text. This page does not run your code.
FULL-ACCESS FEATURE
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
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
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");
}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
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
Saved in this browser only. Export before clearing browser data. Do not store credentials or confidential customer data.
BROWSE THE LIBRARY
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.
Validate a JSON service definition using explicit runtime checks, not a type assertion.
Runtime type guards · TypeScript 5.x / Node.js 22+Report flags that are not explicitly boolean; does not rewrite the configuration.
Record type validation · TypeScript 5.x / Node.js 22+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+Validate a JSON ticket array and count tickets in each priority without printing subjects.
Discriminated string unions · TypeScript 5.x / Node.js 22+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+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+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+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 runningUse 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 runningJSON 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 runningInspect 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 runningInspect 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 runningValidate timezone-qualified dates and check whether the current time lies in the window.
Date validation · TypeScript 5.x / Node.js 22+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+Check artifact version, HTTPS download URL and SHA-256 shape without fetching or deploying.
Object validation · TypeScript 5.x / Node.js 22+Check a JSON inventory for missing or duplicate string asset identifiers.
Map / unknown validation · TypeScript 5.x / Node.js 22+Validate UTC warranty dates in an asset export and report expired or soon-expiring rows for renewal planning.
node:fs, Date · TypeScript 5.x / Node.js 22+Reconcile an array of assetId, expected and observed boolean flags to identify missing or unexpected assets. Duplicate IDs are rejected.
node:fs · TypeScript 5.x / Node.js 22+Validate a JSON array of hostname strings before sending it to a support tool. No DNS queries or connection attempts.
node:fs · TypeScript 5.x / Node.js 22+Validate a JSON array of HTTP status numbers and summarise response classes.
Typed reducers · TypeScript 5.x / Node.js 22+Flag conflicting reservations for the same host, protocol and port without scanning any network.
node:fs/promises · TypeScript 5.x with Node.js 22+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+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 runningJSON 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 runningCalculate nearest-rank p50, p95 and p99 from a JSON array of millisecond samples.
Numeric validation · TypeScript 5.x / Node.js 22+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 packagesList 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 packagesInventory 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 packagesCheck 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 packagesReview generic role exports for wildcard action strings, without contacting an identity provider.
node:fs/promises · TypeScript 5.x with Node.js 22+Compute capped exponential retry delays to spot policies that exceed a service response budget.
node:fs/promises · TypeScript 5.x with Node.js 22+Validate service names and references, then find dependency cycles before planning startup order.
node:fs/promises · TypeScript 5.x with Node.js 22+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+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 runningInput [{"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+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+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+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+Inspect an exported array of sku, purchased and assigned counts; flag over-allocation without connecting to a tenant or changing licences.
node:fs · TypeScript 5.x / Node.js 22+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+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 runningSummarise 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+Identify mixed deployed versions and missing version entries without printing device names. Does not rank versions or contact endpoints.
node:fs · TypeScript 5.x / Node.js 22+JSON rows: succeeded, failed, pending counts. Show failure percentage among completed outcomes and a separate completion percentage; do not treat pending as success.
Typed JSON inventory · Node.js 20+ with TypeScript and @types/node; compile before runningConvert a captured delay-seconds or IMF-fixdate header into a waiting interval. No request or timer is started.
JavaScript Date · TypeScript 5.x / Node.js 22+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 runningJSON 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 runningJSON 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 runningJSON 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 runningJSON 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 runningJSON 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 runningJSON 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 runningCheck an array of {id, expires} records against today in UTC. Require YYYY-MM-DD dates and report row numbers only.
node:fs · TypeScript 5.x / Node.js 22+JSON rows: uptimeHours (finite nonnegative number). Count devices above 720 hours; long uptime alone is not a fault.
node:fs · Node.js 20+; TypeScript and @types/node; compile before runningJSON 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 runningJSON rows: elapsedHours and deadlineHours, finite nonnegative numbers. Count rows beyond deadline; this does not determine whether a patch installed.
node:fs · Node.js 20+; TypeScript and @types/node; compile before runningConvert 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 runningAnalyse 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+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+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+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+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+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+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+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+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+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+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)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)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)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)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)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)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)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 applicableEstimate 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+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+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 newerTreat 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
Catch missing or mismatched device information before importing an export.
SUPPORT PLAYBOOK
Handle unexpected API responses before they break the page or corrupt an import.
SUPPORT PLAYBOOK
Stop repeating unsuccessful resets and narrow a recurring fault with one useful comparison.
SUPPORT PLAYBOOK
Respect an API retry delay without creating duplicate actions.
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