Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk7 min

How to Schedule Website Screenshots with a Windows Task Scheduler Script

A practical Windows guide to scheduling Playwright website screenshots, with examples for Task Scheduler, schtasks, paths, accounts, browser modes, and verification.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a browser-automation script to open the page and save its screenshot; use Windows Task Scheduler to run that script on a recurring or one-time trigger. The script controls what gets captured, while the task controls when, under which account, and in what execution context it runs.

What you need before scheduling a capture

  • A Windows 10 or Windows 11 machine that can run at the scheduled time. Microsoft lists both among the platforms for schtasks.
  • A browser automation runtime and a script that works when launched manually.
  • An output folder writable by the account that will run the task.
  • A decision about whether the browser should run headlessly or appear in a user session.

The example below uses Playwright with Node.js. It illustrates the capture pattern, but it is not a tested end-to-end deployment recipe. Check the syntax and behavior against your installed Windows, Node.js, and Playwright versions, then test it in the same account and context as the scheduled task.

As an Amazon Associate I earn from qualifying purchases.

Build and test the screenshot script first

Install Playwright and its browser

From a working directory for your project, install Playwright and the browser binaries required by the installed Playwright version. Playwright’s browser documentation explains that versions require specific browser binaries and that they can be installed with its CLI: Playwright browsers. Repeat the browser installation when needed after upgrading Playwright. On Windows, the documented default browser cache is under %USERPROFILE%AppDataLocalms-playwright; the account running a task may have a different profile and browser cache.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Save a capture script

For example, save this as C:WebsiteShotscapture.js. It takes a full-page screenshot and writes it to a fixed location, creating the output directory if needed:

#1 Best Overall
const { chromium } = require('playwright');
const fs = require('node:fs/promises');

(async () => {
  const outputDir = 'C:\WebsiteShots\output';
  await fs.mkdir(outputDir, { recursive: true });

  const browser = await chromium.launch({ headless: true });
  try {
    const page = await browser.newPage();
    await page.goto('https://example.com', { waitUntil: 'load' });
    await page.screenshot({ path: `${outputDir}\example.png`, fullPage: true });
  } finally {
    await browser.close();
  }
})().catch(error => {
  console.error(error);
  process.exitCode = 1;
});

Playwright’s Page API documents navigation and screenshot output, including full-page capture: Page API. Replace the example URL and filename with the site and output you need. Before scheduling, run the script manually from the intended project directory using the same Node.js executable you plan to configure for the task. Confirm that the screenshot exists, contains the expected content, and can be overwritten or uniquely named as intended.

The fixed filename above means each successful run replaces the previous image. If you need a history, change the script to generate a unique filename per run; decide on a retention policy so the output folder does not grow indefinitely.

Choose how Windows should start the script

Task Scheduler graphical interface

  1. Open Task Scheduler and choose the option to create a task or a basic task.
  2. Set a name and select the trigger that matches the desired cadence, such as daily or weekly. For advanced conditions and task settings, use the full task configuration rather than assuming the basic wizard exposes every option.
  3. Choose an action to start a program. Set the program to the full path of node.exe, not merely node, and provide the full script path as an argument, for example C:WebsiteShotscapture.js.
  4. Set the start-in or working directory to the project folder, such as C:WebsiteShots, if the task interface provides that field. Scripts that use relative paths can fail when launched from an unexpected working directory; absolute paths avoid that dependency.
  5. Choose the account and run mode deliberately, save the task, then use the task’s Run command to check it.

Microsoft says the command-line and graphical tools perform the same scheduling operations and can be used interchangeably: schtasks commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Using schtasks.exe

schtasks /create supports a schedule type (/sc), optional modifier (/mo), task name (/tn), command (/tr), and optional start time (/st), among other options. For example, an hourly trigger can be expressed like this:

schtasks /create /tn "Website screenshot" /sc hourly /tr ""C:Program Filesnodejsnode.exe" C:WebsiteShotscapture.js" /st 09:00

This is an illustrative command, not a universal account or security configuration. Verify the accepted syntax for your Windows version and configure the task’s run-as identity and other settings appropriately; do not put an account password directly into a published command. The /st value is a start time, not a guarantee that a powered-off machine will capture at that time. Microsoft documents schedule types including minute, hourly, daily, weekly, monthly, once, startup, logon, idle, and event schedules, along with create examples: schtasks create.

Pick the simplest trigger that fits

  • Use a recurring schedule such as daily or weekly for routine snapshots.
  • Use a minute or hourly schedule only when that capture frequency is actually useful; consider the number of files and load from repeated navigation.
  • Use a one-time trigger for a single future capture.
  • Use startup or logon triggers if the capture should follow a machine start or a user sign-in rather than a fixed clock time.

A task cannot capture while the machine is unavailable to run it. Missed-run behavior depends on task settings; the cited scheduling documentation does not establish one universal behavior for every configuration.

Rank #3
15.6 Inch Laptop Computer, N4020, 4GB DDR4 RAM, 128GB eMMC,with Windows 11
  • EFFORTLESS EVERYDAY PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 Home system, delivering reliable, low-power efficiency for daily tasks like document editing, email, online classes, and web browsing
  • 15.6-INCH FULL HD DISPLAY: Enjoy immersive visuals on the 15.6" FHD (1920x1080) anti-glare screen with micro-edge bezels. Delivers clear details and comfortable viewing for long study sessions, working on spreadsheets, and video playback
  • RESPONSIVE MULTITASKING & STORAGE: Built with 4GB LPDDR4 RAM and 128GB eMMC storage for smooth daily essential use. Expand your storage by up to 1TB via the integrated TF card slot to easily store movies, photos, and working files
  • ADVANCED CONNECTIVITY: Outfitted with 2x Full-Featured Type-C ports for data transfer, fast charging, and dual-monitor output, alongside 2x USB 3.2 Gen1 ports and a 3.5mm audio jack for complete peripheral compatibility
  • LIGHTWEIGHT & SILENT OPERATION: Slim and portable for effortless travel or commuting. Features a 1MP HD webcam for remote meetings, 38Wh battery with 45W Type-C fast charging, and a fanless silent design for peaceful work environments.

Set the account, paths, and browser mode for unattended runs

Run under the right identity

Use an account with access to the script, Node.js, the browser binaries, and the output folder. Test permissions under that identity rather than relying on a successful run from your own interactive desktop. Microsoft notes that task permissions are associated with the current or specified user by default. It also states: “The System account doesn’t have interactive logon rights. Users can’t see or interact with programs or tasks run with system permissions.” See Microsoft’s schtasks create documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Headless versus visible browser

The example launches Chromium headlessly, so no browser window is expected. This suits unattended captures. If you need a visible browser or a site flow that depends on an interactive user session, configure and test the task in an appropriate logged-on user context; a System-account task will not show a browser to the user. Playwright documents headless operation and browser-channel options in its browser documentation.

Keep paths and dependencies explicit

  • Use absolute paths for the script and screenshot output.
  • Point the task at the exact Node.js executable you tested.
  • Install the Playwright browser binaries for the account and environment that will execute the task.
  • Grant that identity permission to create and update files in the output directory.
  • Do not assume environment variables, mapped drives, network access, or a browser profile from an interactive session will be available in a background task.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the task and diagnose common failures

Check that it ran and produced a file

Use Task Scheduler’s task state and next-run information to inspect the schedule. From a command prompt, schtasks /query displays task information, and schtasks /run /tn "Website screenshot" starts the task on demand for an operational check. These commands are documented in Microsoft’s schtasks reference. Check the output directory as well: a task can start successfully while the script itself fails.

Rank #4
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.

Common symptoms and fixes

  • No image appears: Run the script manually from the task’s configured account and inspect the task’s command, arguments, working directory, and output-folder permissions.
  • “Node” or the script cannot be found: Replace a bare executable name with the full path to node.exe, and use an absolute script path.
  • Playwright reports a missing browser: Install the browser binaries required by the installed Playwright version for the account that runs the task, then rerun the manual test.
  • The browser window is not visible: Confirm the task is not running as System and that the selected run mode and user-session settings match the need for an interactive window.
  • The task works manually but not on schedule: Compare the interactive and scheduled identities, browser cache locations, permissions, and working directories; test with Task Scheduler’s Run action.
  • The screenshot differs from a desktop capture: Keep the browser version, operating system, settings, hardware, power source, and headless mode consistent where possible. Playwright notes these can affect rendered pixels in its visual comparisons guidance.
  • The capture is incomplete: Confirm the navigation has reached the state you need before taking the screenshot. A page’s load event does not establish that every dynamic element or delayed asset is ready; adapt the script to the site and verify the resulting image.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. A single GET request can return a PNG, JPEG, WebP, or PDF. For a scheduled Windows capture, the script can call the API instead of installing and managing browser automation locally:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Cookie banners are accepted and removed before the shot, along with 60+ known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents. The Free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Can I schedule just one future screenshot instead of a recurring capture?

Yes. Use a one-time trigger in Task Scheduler or the /sc once schedule type supported by schtasks.

Will a scheduled capture run if my PC is off at the trigger time?

No capture can occur while the machine is unavailable. Whether a missed task runs later depends on its configured task settings.

Quick Recap

Bestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.