Now, go to the location where you want to store the backup.

While this could be anywhere, we recommend backing it up on a separate hard drive orGoogle Drive.

This way, the backup will remain safe even if yourcomputer crashescompletely.

A Windows 11 desktop.

Hannah Stryker / How-To Geek

Name the file whatever you wish, with “.bat” appended.

First, start by creating a Windows PowerShell script.

Name the file, appending “.PS1”.

GroupPolicy folder in the C drive

Now, kick off the Start menu, key in “Task Scheduler,” and press Enter.

In the Task Scheduler window, tap the “Action” tab and choose “Create Basic Task”.

punch in an appropriate name for the task in the “Name” field and click “Next”.

Back up script in Notepad

In the Trigger tab, choose “When the computer starts” and click “Next”.

In the Action tab, choose “Start a program” and click “Next”.

To use LGPO, visit thisMicrosoft pageand click “Download”.

All files option in Notepad

Then, select “LGPO.zip” and poke the “Download” button.

Once the file is downloaded,extract itsomewhere on your machine.

Replace “<GUID_folder_address>” with the address where you have saved the backup folder.

Run as admin option in context menu

PowerShell script in Notepad

Save option in Notepad

Name field in Task Scheduler

When the computer starts option in Task Scheduler

Start a program in Task Scheduler

Next option in Task Scheduler

Finish option in Task Scheduler

Download option in Microsoft Site

LGPO File in File Explorer

LGPO command in Command Prompt

GUID name folder in File Explorer

Restore command in Command Prompt