Here is a script that you can use to create a backup of your Windows operating system using the built-in Windows Backup tool. This is another way to automate your task or if you don’t have access to GUI.
@echo off
rem Set the destination for the backup
set destination=C:\Backup
rem Create the destination folder if it doesn't already exist
if not exist %destination% mkdir %destination%
rem Run the backup
wbadmin start backup -backupTarget:%destination% -include:C: -allCritical -vssFull -quiet
echo Backup complete!
To use this script, save it as a .bat file (e.g., “backup.bat”) and double-click it to run it. The script will create a new folder called “Backup” on the C: drive, and then use the Windows Backup tool to create a full system backup to that folder.
You can customize this script by changing the destination folder (set on the second line) to the location where you want to save the backup, and by modifying the “-include” parameter (on the fifth line) to specify which drives or folders you want to include in the backup.