AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

For playersOffer from Amazon

Play games on Amazon Luna for your next adventure, included with Prime

  • A rotating selection of games, no download needed
  • Play on TV, laptop or phone
  • Fast, free delivery for your gear, too
Start playing with Prime Free trial · Cancel anytime
As an affiliate, we earn on qualifying purchases.

An XDA writer reports using an AI agent to create Windows scripts for a file backup, a PC health check and software updates. The first tests exposed a wrong NAS share name and shutdown-related access errors, which the writer says were fixed after troubleshooting; the backup now runs at logon and shutdown. The account is a personal experiment, not evidence that the same setup will work safely on every PC.

An XDA Computing Writer says an AI agent helped create Windows scripts that automate a selected file backup, a PC health check and software updates, turning chores he had postponed into scheduled tasks. The writer’s account, published Oct. 30, 2026, describes a setup that sends files to a home NAS and runs the backup at logon and shutdown, after early tests uncovered configuration and access errors.

The writer began with three tasks: a morning backup, a health report and scheduled updates. A plan to include the entire Documents folder was dropped after he found it contained 739,214 files and about 70GB. Instead, he chose a folder of 2,418 files totaling 1.81GB, excluding what he described as project bloat. He selected his always-on NAS as the destination rather than cloud storage.

Windows Task Scheduler suited the health and update tasks, but the writer wanted the backup to run before shutdown. He chose a Group Policy shutdown script rather than a separate shutdown command, which would have required changing his routine. The AI agent also produced a health-check function using PowerShell’s Get-PSDrive and Get-PhysicalDisk, and an update script that installs updates for an allowlist of apps while reporting other available updates.

The first backup test failed because the NAS share name was wrong. After correcting it, the writer added a logon backup as a second opportunity to copy files and configured ntfy notifications to report results. He says the logon test copied and verified 2,379 files in 33 seconds, updated 7-Zip and VLC, and sent a notification. The first shutdown test failed with a logon-session error and further access-denied errors; after troubleshooting, including correcting an encoding error in a Windows API call, the writer says repeated reboots produced successful runs.

At a glance
reportWhen: Published Oct. 30, 2026; the writer say…
The developmentAn XDA writer described using an AI agent to build and troubleshoot Windows automation scripts for backups, system checks and software updates.
I Used AI To Write A Windows Script I’d Put Off For Years, And It Runs Every Morning Now

Windows automation · Personal experiment

I Used AI To Write A Windows Script I’d Put Off For Years, And It Runs Every Morning Now

An XDA writer used an AI agent to build scripts for a selected-folder backup, a PC health report and software updates. Early tests failed; the writer says troubleshooting got the backup running at logon and shutdown.

Oct. 30Published · 2026
2,418Files in selected folder
1.81 GBInitial backup scope
33 secReported logon copy

Three chores, one agent

The writer translated postponed maintenance into a small set of scripts, with a home NAS as the backup destination.

01 · BACKUP

Selected files

Copy one chosen folder to a share on an always-on home NAS. The job was configured for both logon and shutdown.

02 · HEALTH

PC check

A PowerShell health function used Get-PSDrive and Get-PhysicalDisk to report on system resources and disks.

03 · UPDATES

App maintenance

An allowlist guided which app updates to install; the script also reported other available updates.

Original idea · Documents folder 739,214 files · ~70 GB

Too large for the first version, so the writer narrowed the scope.

Chosen first scope 2,418 files · 1.81 GB

A smaller folder, excluding what the writer called project bloat.

From request to routine

Windows Task Scheduler handled health and update tasks. A Group Policy shutdown script matched the goal of backing up before power-off.

1

Define

Pick the chores

Backup, health report and scheduled updates made the first cut.

2

Scope

Choose the files

After checking size and contents, the writer selected one smaller folder.

3

Configure

Set the triggers

Logon provided another backup opportunity; Group Policy handled shutdown.

4

Troubleshoot

Test on the PC

Real NAS access and Windows permissions revealed issues the draft could not anticipate.

LOGON RUN

One reported success

The writer says 2,379 files copied and verified in 33 seconds. The run updated 7-Zip and VLC and sent an ntfy notification.

SHUTDOWN RUN

Fixes after failures

An initial logon-session error and access-denied errors followed the first test. The writer says an encoding issue in a Windows API call was corrected, then repeated reboots succeeded.

Automation still needs testing

Generated code can speed up a first draft. It cannot establish that a backup is complete, recoverable or reliable on another PC.

A success message is not a recovery plan.

This account describes a personal setup, not a safety guarantee. The writer says the selected folder copied after troubleshooting, but the story does not report a verified restore or long-term reliability record.

01

Check scope: know exactly which files are included and excluded.

02

Check the copy: verify files arrive at the destination as expected.

03

Test recovery: restore files and confirm the NAS copy meets your needs.

“The network name cannot be found.”

First backup test · wrong NAS share

“A specified logon session does not exist.”

First shutdown test · access trouble

“I’ll do it later.”

Why automation appealed

Limits of the reported result

The outcome belongs to this writer’s Windows configuration, NAS, selected files and software allowlist.

SCOPE

One folder

The backup did not cover the full Documents folder or the entire PC.

RECOVERY

Restore not reported

The account does not say whether files were restored or protected from deletion and hardware failure.

RELIABILITY

Long-term record absent

Several successful reboot runs are reported; behavior with an offline NAS and longer-term monitoring is not described.

AI-assisted scripts→ Selected folder→ Home NAS→ Logon + shutdown→ ntfy notice
The next step named by the writer
→

Expand carefully. Then verify a restore.

The writer may consider adding the Documents folder, but its roughly 70 GB would mean a larger, longer job. Continued monitoring and a verified restore would help establish how the current setup performs; neither is reported as completed.

Automation Still Needs Testing

The account shows how an AI coding agent can help turn a plain-language request into practical Windows automation, including scripts that interact with storage and scheduled tasks. But the experience also shows that generated code does not remove the need to define the task carefully, test it against real hardware and permissions, and check what happens when a job fails.

That matters most for backups. A script that reports success is not the same as a dependable recovery plan. The writer limited the first version to one folder and used a NAS that stays at home, rather than claiming to have solved all backup needs. Readers considering a similar setup should verify that copies are complete and recoverable, and should understand which files are included before relying on the automation.

Products Worth Considering

Bose QuietComfort True Wireless Earbuds with Active Noise Cancellation, Black

Bose QuietComfort True Wireless Earbuds with Active Noise Cancellation, Black

As an affiliate, we earn on qualifying purchases.

From Server Routine to PC Scripts

The writer contrasted his careful home-server routine with years of postponing backups and updates on his Windows PC. He says he follows the 3-2-1 backup rule for the server and manually updates its services each weekend, while the PC tasks had remained on his to-do list. Having used AI for other small scripts, he decided to try it on these chores as well.

One proposed fourth task, a script to open a set of apps at the start of the day, was left out because his daily routine varies. The backup plan also changed as he checked the actual size and contents of his folders. Those choices shaped the final scope: a smaller selected folder, an existing NAS share, a shutdown trigger and a separate logon run.

“I’ll do it later.”

— The XDA writer, describing his PC routine

Limits of the Successful Test

The account does not provide independent verification of the scripts, the full code, or the exact safeguards used for every failure condition. The writer says the shutdown process worked after fixes and several reboots, but does not give a longer-term reliability record or explain how the system behaves if the NAS is offline during a run.

The described backup covers one selected folder, not the full Documents folder or the entire PC. The article also does not establish whether the NAS copy is protected against deletion, hardware failure or other risks, or whether the writer has tested restoring files. The results are specific to his Windows configuration, NAS, selected files and software allowlist.

Expanding the Backup Carefully

The writer’s next stated step is to consider expanding the backup to the Documents folder, which he left out of the initial version because of its size. Any expansion would increase the amount of data and the time required, so the current setup does not yet show how that larger job would perform.

For now, the writer says the scripts run at logon and shutdown, with ntfy notifications available instead of requiring him to inspect logs each time. The next useful test for this system would be continued monitoring and a verified restore; the account does not say that either has been completed.

Key Questions

What tasks did the AI-generated scripts handle?

The writer says they handled a selected-folder backup, a PC health report and scheduled software updates. The backup was configured to run at logon and shutdown.

Where did the backup copy files?

It copied the selected files to a share on the writer’s home NAS. He chose the NAS because it remains on while the PC is at home.

Did the first tests work?

No. The first backup test used an incorrect NAS share name, and the first shutdown test produced a logon-session error followed by access-denied errors. The writer says he corrected the problems and that later runs worked.

Did the scripts back up the entire Documents folder?

No. The writer says that folder contained 739,214 files and was about 70GB, so he chose a smaller folder with 2,418 files totaling 1.81GB for the first version.

Does this account prove AI-generated backup scripts are safe for anyone to use?

No. It describes one writer’s setup and testing, not a general safety guarantee. Anyone adapting similar scripts would need to check the code, permissions, backup scope and recovery process for their own system.

Source: XDA Developers

You May Also Like

How to Keep Controller Buttons Feeling Better Over Time

How to keep controller buttons feeling better over time and prevent wear, ensuring your gaming experience stays smooth and enjoyable.

Why Heat Is One of the Quietest Threats to VR Hardware

Because heat silently accumulates inside your VR headset, understanding its dangers is crucial before irreversible damage occurs.

Why Shared VR Setups Need Better Cleaning Rules

AIThis post was created with the assistance of artificial intelligence (AI).Shared VR…

The Hidden Places Dirt Builds Up on VR Gear

Just when you think your VR gear is clean, hidden spots harbor dirt and microbes—discover how to keep your device truly hygienic.