Multiple Windows Server Backup Schedules using PowerShell

Windows Server Backup is a very useful and free product and you easily backup files, applications (Exchange, SQL) and Hyper-V VMs. A big disadvantage is that you ca only schedule one Job to run only daily.

Here comes our favorite PowerShell, combined once again with the Task Scheduler, to  give us more options.

My problem was that I wanted to backup some VMs daily and some VMs weekly. So I created two PowerShell scripts and two Task Scheduler Jobs.

The PowerShell script to backup VMs:


The above script reads text file that has a list with the Virtual Machines names, the c:vms.txt, and starts the backup to the W: Drive.

If you just want to backup one VM alter the 2nd line with

To backup Drives or/and Folders use this script:

To add the SystemState to the backup Job add this line:


To check the current running Backup job you can run


To check the previous Backup job you can run:



Finally create a Task and attach the PowerShell script. Here you will find the powershell.exe “C:WindowsSystem32WindowsPowerShellv1.0″


Leave a Reply