Windows 7 / Getting Started

How to Start a System Image Backup from the Command Line

The simplest way to initiate a System Image backup is to follow the prompts in the Backup And Restore Center. If you want to automate or schedule System Image backups, however, you can use the WBAdmin.exe command-line tool.

For example, to initiate a System Image backup of the C drive to the L drive, you can run the following command line from an elevated command prompt.


Wbadmin start backup -backupTarget:L: -include:C: -quiet

wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.

Retrieving volume information...

This will back up volume Local Disk(C:) to L:.

The backup operation to L: is starting.

Creating a shadow copy of the volumes specified for backup...
Creating a backup of volume Local Disk(C:), copied (0%).
Creating a backup of volume Local Disk(C:), copied (18%).
Creating a backup of volume Local Disk(C:), copied (40%).
Creating a backup of volume Local Disk(C:), copied (77%).
Creating a backup of volume Local Disk(C:), copied (98%).
The backup of volume Local Disk(C:) successfully completed.
The backup operating successfully completed.
Summary of the backup operation:
------------------

Backup of volume Local Disk(C:) completed successfully.

The behavior is identical to the System Image backups initiated from the graphical Backup And Restore tool. The first time you initiate a System Image backup, it backs up every block on the system volume. Each subsequent time, it simply updates the previous backup.

You can use the same command to schedule a task from the command line. If you use Task Scheduler, you must configure the task to run with administrative privileges. You can do this by providing an administrative user account and selecting the Run With Highest Privileges check box on the General tab of the task's Properties dialog box.

[Previous] [Contents] [Next]

In this tutorial:

  1. Managing Disks and File Systems
  2. Overview of Partitioning Disks
  3. How to Choose Between MBR or GPT
  4. Converting from MBR to GPT Disks
  5. GPT Partitions
  6. Choosing Basic or Dynamic Disks
  7. Working with Volumes
  8. How to Create a Simple Volume
  9. How to Create a Spanned Volume
  10. How to Create a Striped Volume
  11. How to Resize a Volume
  12. How to Delete a Volume
  13. How to Create and Use a Virtual Hard Disk
  14. File System Fragmentation
  15. Backup And Restore
  16. How File Backups Work
  17. File and Folder Backup Structure
  18. How System Image Backups Work
  19. How to Start a System Image Backup from the Command Line
  20. How to Restore a System Image Backup
  21. System Image Backup Structure
  22. Best Practices for Computer Backups
  23. How to Manage Backup Using Group Policy Settings
  24. Previous Versions and Shadow Copies
  25. How to Manage Shadow Copies
  26. How to Restore a File with Previous Versions
  27. How to Configure Previous Versions with Group Policy Settings
  28. Windows ReadyBoost
  29. BitLocker Drive Encryption
  30. How BitLocker Encrypts Data
  31. How BitLocker Protects Data
  32. TPM with External Key (Require Startup USB Key At Every Startup)
  33. TPM with PIN (Require PIN At Every Startup)
  34. TPM with PIN and External Key
  35. BitLocker To Go
  36. BitLocker Phases
  37. Requirements for Protecting the System Volume with BitLocker
  38. How to Enable the Use of BitLocker on the System Volume on Computers Without TPM
  39. How to Enable BitLocker Encryption on System Volumes
  40. How to Enable BitLocker Encryption on Data Volumes
  41. How to Manage BitLocker Keys on a Local Computer
  42. How to Manage BitLocker from the Command Line
  43. How to Recover Data Protected by BitLocker
  44. How to Disable or Remove BitLocker Drive Encryption
  45. How to Decommission a BitLocker Drive Permanently
  46. How to Prepare AD DS for BitLocker
  47. How to Configure a Data Recovery Agent
  48. How to Manage BitLocker with Group Policy
  49. The Costs of BitLocker
  50. Windows 7 Encrypting File System
  51. How to Export Personal Certificates
  52. How to Import Personal Certificates
  53. How to Grant Users Access to an Encrypted File
  54. Symbolic Links
  55. How to Create Symbolic Links
  56. How to Create Relative or Absolute Symbolic Links
  57. How to Create Symbolic Links to Shared Folders
  58. How to Use Hard Links
  59. Disk Quotas
  60. How to Configure Disk Quotas on a Single Computer
  61. How to Configure Disk Quotas from a Command Prompt
  62. How to Configure Disk Quotas by Using Group Policy Settings
  63. Disk Tools
  64. EFSDump
  65. SDelete
  66. Streams
  67. Sync
  68. MoveFile and PendMoves