{"id":466,"date":"2008-04-13T03:42:54","date_gmt":"2008-04-13T01:42:54","guid":{"rendered":"http:\/\/www.corelan.be:8800\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/"},"modified":"2008-04-13T03:42:54","modified_gmt":"2008-04-13T01:42:54","slug":"systemdisk-backup-in-vista-using-command-line-script","status":"publish","type":"post","link":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/","title":{"rendered":"System\/Disk Backup in Vista using command line script"},"content":{"rendered":"<div class=\"ExternalClassD1C18238964F4EA1B89F95CBECE39C4F\">\n<p>Microsoft has implemented a really neat feature in Vista Business, Enterprise and Ultimate, allowing you to perform a full disk or even system backup, while the system is running. <\/p>\n<p>This new backup tool used Block Level backup and uses Volume Shadow Copy to backup open files (however, it is advised to close your applications while running the backup, this will certainly speed up the process a little, and will make sure your backup is more accurate) <\/p>\n<p>&#160;&#160; <\/p>\n<p>Before looking at the details of performing a disk or system backup, there are a number of things you need to know <\/p>\n<p>&#160;&#160; <\/p>\n<p>1. You can only backup a disk or the entire system (all disks). You cannot backup a folder or a set of files <\/p>\n<p>2. You can only perform a full system backup onto another local disk. You cannot backup to the same disk that you are backing up (for obvious reasons) and you cannot backup to network shares or USB drives.&#160; You can backup to DVD, but be prepared to swap a lot of DVD's (depending on the amount of data that needs to be backed up). Also, pray that the DVD's remain intact, they may cause you a lot of problems when you're restoring... <\/p>\n<p>3. The drive including the system files will be automatically included in the backup job. <\/p>\n<p>&#160;&#160; <\/p>\n<p>Nevertheless, these limitations are easily outweighed by the benefits <\/p>\n<p>The result of a backup is a .vhd file (and a number of xml based configuration files). <\/p>\n<p>This vhd file can be <\/p>\n<p>- mounted by a system running in Microsoft Virtual PC, allowing you to access the files on the disk <\/p>\n<p>- mounted by Microsoft Virtual PC, allowing you to run the computer within a virtualized environment. (Microsoft doesn't really support this, but this is a good way to P2V your system in a Microsoft environment) <\/p>\n<p>- used to recover your system in a Bare Metal restore fashion. Yes, that's right. You can take other hardware, boot with the Vista DVD, and restore the vhd file onto other hardware, without problems. <\/p>\n<p>&#160;&#160; <\/p>\n<p>While file restore (as we know from older versions of Windows Operating Systems) is useful in cases of file loss and data corruption, Windows Complete PC Backup and Restore is most useful for disaster recovery when your PC malfunctions. This feature helps you create complete PC backups, and then in the event of a serious system issue or data loss, Windows Complete PC Backup and Restore can restore your entire PC environment, including the operating system, installed programs, user settings, and data files. <\/p>\n<p>You can restore your PC back to its original state or onto another PC. Windows Complete PC Backup and Restore can be initiated from within Windows Vista or from the Windows Vista installation CD, if the PC is not able to start up normally from the hard disk. <\/p>\n<p>Either way, when restoring the file (whether it is the same hardware or other hardware), you need to take into account that <strong>you cannot restore the files onto a disk that is smaller than the original disk<\/strong>. Even though Vista supports &quot;shrinking&quot; a partition, and you may only be using a small piece of the entire disk,&#160; the restore process will not allow you to restore onto a disk that is smaller than the original disk. <\/p>\n<p>&#160;&#160; <\/p>\n<p>Let's assume that we will backup drive C: to local disk identified by drive letter D: <\/p>\n<p>You can use the a nice GUI to handle the backup sequence, but since we all are command line geeks, I have good news for you : wbadmin allows you to script the entire process, and it's not even that hard <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 626px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-size: 10pt; font-family: courier new\">C:\\&gt;<strong>wbadmin -help                    <br \/><\/strong>wbadmin 1.0 - Backup command-line tool                   <br \/>(C) Copyright 2004 Microsoft Corp.                   <br \/>---- Commands Supported ----                   <br \/>START BACKUP&#160;&#160;&#160;&#160;&#160;&#160;&#160; -- Run a backup immediately                   <br \/>STOP JOB&#160;&#160;&#160;&#160;&#160;&#160;&#160; -- Stop currently running backup or recovery                   <br \/>GET VERSIONS&#160;&#160;&#160;&#160;&#160;&#160;&#160; -- List details backups recoverable from                   <br \/>GET ITEMS&#160;&#160;&#160;&#160;&#160;&#160; -- Lists items backed up for a backup                   <br \/>GET STATUS&#160;&#160;&#160;&#160;&#160; -- Lists status of currently running job<\/span> <\/p>\n<p>&#160;&#160; <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">C:\\&gt;<strong>wbadmin start backup -help<\/strong>                   <br \/>wbadmin 1.0 - Backup command-line tool                   <br \/>(C) Copyright 2004 Microsoft Corp.                   <br \/>Usage: WBADMIN START BACKUP                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; -backupTarget:{TargetVolume | TargetNetworkShare} -include:VolumesToInclude                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; [-noVerify]                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; [-quiet]                   <br \/>Runs a backup immediately using the specified options.                   <br \/>-backupTarget&#160;&#160; Storage location for this backup. Requires drive letter or UNC                   <br \/>path to shared network folder.                   <br \/>-include&#160;&#160;&#160;&#160;&#160;&#160;&#160; Comma delimited list of volume drive letters, volume mount                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; points or GUID based volume names to include in backup. Should                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; be used when -backupTarget is specified.                   <br \/>-noVerify&#160;&#160;&#160;&#160;&#160;&#160; If specified, backups written to removable media such as DVD                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; will not be verified. By default, backups written to such media                   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; will be verified for errors.                   <br \/>-quiet&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Runs the command with no user prompts.                   <br \/>Example: WBADMIN START BACKUP -backupTarget:e: -include:e:,d:\\mountpoint,\\\\?\\Volume{cc566d14-44a0-11d9-9d93-806e6f6e6963}\\<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>In our example, we want to backup drive C: onto drive D: <\/p>\n<p>This would be the syntax of wbadmin : <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 450px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-size: 10pt; font-family: courier new\"><strong>wbadmin start backup -quiet -include:c: -backupTarget:d:<\/strong><\/span> <\/p>\n<p>&#160;&#160; <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">wbadmin 1.0 - Backup command-line tool                  <br \/>(C) Copyright 2004 Microsoft Corp.<\/span> <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">Retrieving volume information...<\/span> <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">This would backup volume Local Disk(C:) to d:.<\/span> <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">Backup to D: is starting.<\/span> <\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">Running shadow copy of volumes requested for backup.                  <br \/>Running shadow copy of volumes requested for backup.                   <br \/>Running shadow copy of volumes requested for backup.                   <br \/>Running backup of volume Local Disk(C:), copied (0%).                   <br \/>Running backup of volume Local Disk(C:), copied (0%).                   <br \/>Running backup of volume Local Disk(C:), copied (1%).                   <br \/>Running backup of volume Local Disk(C:), copied (2%).                   <br \/>Running backup of volume Local Disk(C:), copied (2%).                   <br \/>Running backup of volume Local Disk(C:), copied (3%).                   <br \/>Running backup of volume Local Disk(C:), copied (3%).                   <br \/>Running backup of volume Local Disk(C:), copied (4%).                   <br \/>Running backup of volume Local Disk(C:), copied (4%).                   <br \/>Running backup of volume Local Disk(C:), copied (4%).                   <br \/>Running backup of volume Local Disk(C:), copied (5%).                   <br \/>Running backup of volume Local Disk(C:), copied (5%).                   <br \/>Running backup of volume Local Disk(C:), copied (6%).                   <br \/>Running backup of volume Local Disk(C:), copied (6%).                   <br \/>Running backup of volume Local Disk(C:), copied (7%).                   <br \/>Running backup of volume Local Disk(C:), copied (7%).                   <br \/>Running backup of volume Local Disk(C:), copied (8%).<\/span>&#160; <\/p>\n<p>...<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>This will launch the Volume Shadow Copy service, and then start to perform the backup. <\/p>\n<p>The entire process may take a while, so sit back and enjoy this new feature that may save you a lot of work afterwards. <\/p>\n<p>&#160;&#160; <\/p>\n<p>In the end, when you look at the backup destination drive, you'll find the following folder layout : <\/p>\n<p>In the root of the drive, you'll find the &quot;WindowsImageBackup&quot; folder <\/p>\n<p>This folder contains a folder named after the machine that was backed up. <\/p>\n<p>Under that &lt;hostname&gt; folder, you'll find a folder starting with &quot;Backup - &quot; followed by the date &amp; time of backup, <\/p>\n<p>a folder called &quot;Catalog&quot; and a file called &quot;MediaID&quot; <\/p>\n<p>The vhd file is stored under the &quot;Backup - &lt;datetimestamp&gt;&quot; folder. At the end of the backup task, a couple of xml configuration files are being generated and stored under the same folder as well. <\/p>\n<p>&#160;&#160; <\/p>\n<p>&#160;&#160; <\/p>\n<p>The first time I ran the backup, I encountered problems. Volume Shadow Copy didn't kick off and the event log started complaining about the ASR writer <\/p>\n<p>The wbadmin tool stopped, and I noticed the following errors : <\/p>\n<p>&#160;&#160; <\/p>\n<p>Event viewer (Application Log): <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 626px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-size: 10pt; font-family: courier new\">Volume Shadow Copy Service warning: ASR writer Error 0x8000ffff. hr = 0x00000000. <\/span><span style=\"font-size: 7pt\"><\/span><\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">Operation:                  <br \/>PrepareForBackup event                   <br \/>PrepareForBackup event<\/span><span style=\"font-size: 7pt\"> <\/span><\/p>\n<p><span style=\"font-size: 10pt; font-family: courier new\">Context:                  <br \/>Execution Context: ASR Writer                   <br \/>Execution Context: Writer                   <br \/>Writer Class Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}                   <br \/>Writer Name: ASR Writer                   <br \/>Writer Instance ID: {22275b8b-bd54-4eef-a2e2-f15db8c58ba0}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>followed by <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 626px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-size: 10pt; font-family: courier new\">Backup started at '21\/06\/2007 6:20:40' failed as Volume Shadow copy operation failed for backup volumes with following error code '2147754996'. Please rerun backup once issue is resolved.<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>When I turned on ASR logging, there wasn't anything usefull I could find, except for the fact that Volume Shadow Copy was trying to connect to disk 0, because it assumes drive C: = disk 0 <\/p>\n<p>&#160;&#160; <\/p>\n<p>When looking at the Disk Management console, I noticed that there was another partition, sitting in front of my C: drive... the EISA partition. <\/p>\n<p>&#160;&#160; <\/p>\n<p>And that brings us to the root cause of the problem. Volume Shadow Copy and DIsk Management don't appear to be perfectly aligned, so you better make sure your drives in Vista are aligned with the drive letters, otherwise you won't be able to use Volume Shadow Copy (or Windows Backup) <\/p>\n<p>&#160;&#160; <\/p>\n<p><span style=\"text-decoration: underline\">Solution <\/span>: remove the EISA partition <\/p>\n<p>By default, a lot of computers have a so-called utility partition, ofter referred to as &quot;EISA&quot; partition. <\/p>\n<p>This partition is the first partition on the disk, and does not get a drive letter assigned in the OS <\/p>\n<p>Although this partition is not very big, there may be certain reasons to remove this partition. <\/p>\n<p>One of those reasons could be that Windows Backup looks at partitions and disks, but despite the fact that the EISA partition did not get a drive letter, Windows Backup still thinks that C: is actually that EISA partition, which could lead to unwanted behaviour\/results when performing a full disk or full system backup. <\/p>\n<p>&#160;&#160; <\/p>\n<p>If you want to remove the parition after you've installed Vista, then you must take into account that you're going to remove the first active partition, the partition that holds the Master Boot Record. So in short : if you remove the EISA partition, you're going to wipe out the MBR and the first active partition. <\/p>\n<p>&#160;&#160; <\/p>\n<p>These are the steps required to properly remove the EISA partition <\/p>\n<p>&#160;&#160; <\/p>\n<p>1. Get a copy of gparted-live (from <a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=115843&amp;package_id=173828\"><span style=\"color: #3966bf\">http:\/\/sourceforge.net\/project\/showfiles.php?group_id=115843&amp;package_id=173828<\/span><\/a>) <\/p>\n<p>(Main website : <a href=\"http:\/\/gparted.sourceforge.net\/\"><span style=\"color: #3966bf\">http:\/\/gparted.sourceforge.net<\/span><\/a>) <\/p>\n<p>2. Burn the ISO to a CD and boot the computer with the CD <\/p>\n<p>3. In the bootprocess, set the keyboard and wait until X boots.&#160; GParted will be launched automatically, indicating the disks and partitions that can be found on the system <\/p>\n<p>4. Select the EISA partition, right click and Delete the partition <\/p>\n<p>5. Shut down Gparted and double-click on the EXIT icon in the upper left corner.&#160; The CD will be ejected automatically <\/p>\n<p>6. Wait until the machine has shut down, remove the GParted CD, and put the Vista installation DVD in the drive <\/p>\n<p>7. Boot from the Vista installation DVD <\/p>\n<p>8. The installation process should detect that the boot files are missing, and will prompt you to repair the Boot Record. Don't do it (yet).&#160; If you're not prompted to repair, then that's ok. <\/p>\n<p>9. At the graphical installation screen &quot;Install Vista Now&quot;, you will find a link to &quot;<strong>Repair Your Computer<\/strong>&quot; <\/p>\n<p>10. The System Recovery Options dialog box displays a number of options. Choose &quot;<strong>Command Prompt<\/strong>&quot; <\/p>\n<p>11. At the command prompt, type &quot;<strong>diskpart<\/strong>&quot; and follow these instructions : <\/p>\n<p>&#160;&#160; <\/p>\n<p>First, select the disk that contains the partition holding Vista (should be disk 0 in most cases). If you're not sure, do a &quot;<span style=\"font-family: courier new\">list disk<\/span>&quot; to show all disks, and select the correct disk using the <span style=\"font-family: courier new\">&quot;select disk&quot;<\/span> command : <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 451px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-family: courier new\">Microsoft DiskPart version 6.0.6000                  <br \/>Copyright (C) 1999-2007 Microsoft Corporation.                   <br \/>On computer: LAPTOP1<\/span> <\/p>\n<p>&#160;&#160; <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt; list disk<\/span> <\/p>\n<p><span style=\"font-family: courier new\">&#160; Disk ###&#160; Status&#160;&#160;&#160;&#160;&#160; Size&#160;&#160;&#160;&#160; Free&#160;&#160;&#160;&#160; Dyn&#160; Gpt                  <br \/>&#160; --------&#160; ----------&#160; -------&#160; -------&#160; ---&#160; ---                   <br \/>&#160; Disk 0&#160;&#160;&#160; Online&#160;&#160;&#160;&#160;&#160;&#160; 112 GB&#160;&#160; 103 MB<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt; select disk 0<\/span> <\/p>\n<p><span style=\"font-family: courier new\">Disk 0 is now the selected disk.<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt; list partition<\/span> <\/p>\n<p><span style=\"font-family: courier new\">&#160; Partition ###&#160; Type&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Size&#160;&#160;&#160;&#160; Offset                  <br \/>&#160; -------------&#160; ----------------&#160; -------&#160; -------                   <br \/>&#160; Partition 1&#160;&#160;&#160; Primary&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 112 GB&#160;&#160;&#160; 94 MB<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>As shown above, the <span style=\"font-family: courier new\">&quot;list partition&quot;<\/span> command shows all partitions on the selected disk <\/p>\n<p>Select the Vista partition using the &quot;<span style=\"font-family: courier new\">select partition 1<\/span>&quot; command (where '1' refers to the number that indicates the number of the Vista partition) <\/p>\n<p>Next, use the &quot;<span style=\"font-family: courier new\">active<\/span>&quot; command to set this partition as the active partition. <\/p>\n<p>&#160;&#160; <\/p>\n<div>\n<table style=\"background: #cccccc; border-collapse: collapse\" border=\"0\">\n<colgroup>\n<col style=\"width: 451px\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"border-right: 0.75pt outset; padding-right: 1px; border-top: 0.75pt outset; padding-left: 1px; padding-bottom: 1px; border-left: 0.75pt outset; padding-top: 1px; border-bottom: 0.75pt outset\">\n<p><span style=\"font-family: courier new\">DISKPART&gt; list partition<\/span> <\/p>\n<p><span style=\"font-family: courier new\">&#160; Partition ###&#160; Type&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Size&#160;&#160;&#160;&#160; Offset                  <br \/>&#160; -------------&#160; ----------------&#160; -------&#160; -------                   <br \/>* Partition 1&#160;&#160;&#160; Primary&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 112 GB&#160;&#160;&#160; 94 MB<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt; active<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DiskPart marked the current partition as active.<\/span> <\/p>\n<p><span style=\"font-family: courier new\">DISKPART&gt;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>&#160;&#160; <\/p>\n<p>use &quot;Exit&quot; to leave diskpart. This completes part one of the repair. <\/p>\n<p>If the computer reboots, make sure to boot from DVD again and wait until you're back at the &quot;<strong>Repair Your Computer<\/strong>&quot; option. <\/p>\n<p>Then go to the next step. <\/p>\n<p>If the computer has not rebooted, then go straight to the <strong>&quot;Startup Repair&quot;<\/strong> option. <\/p>\n<p>Have Vista Recovery repair the Master Boot Record (which can take a couple of minutes) and reboot again, but this time, don't boot from the Vista DVD.&#160; Your system should be operational again <\/p>\n<p>&#160;&#160; <\/p>\n<p>By the way : diskpart.exe is available for Windows XP as well : <\/p>\n<p><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=0FD9788A-5D64-4F57-949F-EF62DE7AB1AE&amp;displaylang=en\"><span style=\"color: #3966bf\">http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=0FD9788A-5D64-4F57-949F-EF62DE7AB1AE&amp;displaylang=en<\/span><\/a> <\/p>\n<p>&#160;&#160; <\/p>\n<p>&#160;&#160; <\/p>\n<p><span style=\"text-decoration: underline\">Note : Enabling ASR logging :<\/span> <\/p>\n<ul>\n<li>Go into Regedit <\/li>\n<li>Under HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\        <br \/>&#160;&#160;&#160; Create the key: Asr <\/li>\n<li>Under Asr create the key LogFileSetting <\/li>\n<li>Under LogFileSetting create the dword EnableLogging with the value 1 <\/li>\n<li>Under LogFileSetting create the string LogPathName (string) with a value such as d:\\Asr.log <\/li>\n<\/ul>\n<p>&#160;&#160; <\/p>\n<p>&#160;&#160; <\/p>\n<p>&#160;&#160; <\/p>\n<p>&#160;&#160; <\/p>\n<p>&#160; <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft has implemented a really neat feature in Vista Business, Enterprise and Ultimate, allowing you to perform a full disk or even system backup, while the system is running. This new backup tool used Block Level backup and uses Volume Shadow Copy to backup open files (however, it is advised to close your applications while &hellip; <a href=\"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"System\/Disk Backup in Vista using command line script\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[201],"tags":[3740],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-windows-client-os","tag-backup-restore"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>System\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"System\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"og:description\" content=\"Microsoft has implemented a really neat feature in Vista Business, Enterprise and Ultimate, allowing you to perform a full disk or even system backup, while the system is running. This new backup tool used Block Level backup and uses Volume Shadow Copy to backup open files (however, it is advised to close your applications while &hellip; Continue reading &quot;System\/Disk Backup in Vista using command line script&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/\" \/>\n<meta property=\"og:site_name\" content=\"Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/corelanconsulting\" \/>\n<meta property=\"article:published_time\" content=\"2008-04-13T01:42:54+00:00\" \/>\n<meta name=\"author\" content=\"corelanc0d3r\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@corelanc0d3r\" \/>\n<meta name=\"twitter:site\" content=\"@corelanc0d3r\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/\"},\"author\":{\"name\":\"corelanc0d3r\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/3be5542b9b0a0787893db83a5ad68e8f\"},\"headline\":\"System\\\/Disk Backup in Vista using command line script\",\"datePublished\":\"2008-04-13T01:42:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/\"},\"wordCount\":2151,\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"keywords\":[\"backup restore\"],\"articleSection\":[\"Windows Client OS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/\",\"name\":\"System\\\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\"},\"datePublished\":\"2008-04-13T01:42:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2008\\\/04\\\/13\\\/systemdisk-backup-in-vista-using-command-line-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.corelan.be\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"System\\\/Disk Backup in Vista using command line script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"name\":\"Corelan CyberSecurity Research\",\"description\":\"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.corelan.be\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\",\"name\":\"Corelan CyberSecurity Research\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"contentUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"width\":200,\"height\":200,\"caption\":\"Corelan CyberSecurity Research\"},\"image\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/corelanconsulting\",\"https:\\\/\\\/x.com\\\/corelanc0d3r\",\"https:\\\/\\\/x.com\\\/corelanconsulting\",\"https:\\\/\\\/instagram.com\\\/corelanconsult\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/3be5542b9b0a0787893db83a5ad68e8f\",\"name\":\"corelanc0d3r\",\"pronouns\":\"he\\\/him\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x\",\"caption\":\"corelanc0d3r\"},\"description\":\"Peter Van Eeckhoutte is the founder of Corelan and a globally recognized expert in exploit development and vulnerability research. With over two decades in IT security, he built Corelan into a respected platform for deep technical research, hands-on training, and knowledge sharing. Known for his influential exploit development tutorials, tools, and real-world training, Peter combines a strong research mindset with a passion for education\u2014helping security professionals understand not just how exploits work, but why.\",\"sameAs\":[\"https:\\\/\\\/www.corelan-training.com\",\"https:\\\/\\\/instagram.com\\\/corelanc0d3r\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/petervaneeckhoutte\\\/\",\"https:\\\/\\\/x.com\\\/corelanc0d3r\"],\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/author\\\/admin0\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"System\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/","og_locale":"en_US","og_type":"article","og_title":"System\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research","og_description":"Microsoft has implemented a really neat feature in Vista Business, Enterprise and Ultimate, allowing you to perform a full disk or even system backup, while the system is running. This new backup tool used Block Level backup and uses Volume Shadow Copy to backup open files (however, it is advised to close your applications while &hellip; Continue reading \"System\/Disk Backup in Vista using command line script\"","og_url":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/","og_site_name":"Corelan | Exploit Development &amp; Vulnerability Research","article_publisher":"https:\/\/www.facebook.com\/corelanconsulting","article_published_time":"2008-04-13T01:42:54+00:00","author":"corelanc0d3r","twitter_card":"summary_large_image","twitter_creator":"@corelanc0d3r","twitter_site":"@corelanc0d3r","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/#article","isPartOf":{"@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/"},"author":{"name":"corelanc0d3r","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/3be5542b9b0a0787893db83a5ad68e8f"},"headline":"System\/Disk Backup in Vista using command line script","datePublished":"2008-04-13T01:42:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/"},"wordCount":2151,"publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"keywords":["backup restore"],"articleSection":["Windows Client OS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/","url":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/","name":"System\/Disk Backup in Vista using command line script - Corelan | Exploit Development &amp; Vulnerability Research","isPartOf":{"@id":"https:\/\/www.corelan.be\/#website"},"datePublished":"2008-04-13T01:42:54+00:00","breadcrumb":{"@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.corelan.be\/index.php\/2008\/04\/13\/systemdisk-backup-in-vista-using-command-line-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.corelan.be\/"},{"@type":"ListItem","position":2,"name":"System\/Disk Backup in Vista using command line script"}]},{"@type":"WebSite","@id":"https:\/\/www.corelan.be\/#website","url":"https:\/\/www.corelan.be\/","name":"Corelan CyberSecurity Research","description":"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.","publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.corelan.be\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.corelan.be\/#organization","name":"Corelan CyberSecurity Research","url":"https:\/\/www.corelan.be\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/","url":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","contentUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","width":200,"height":200,"caption":"Corelan CyberSecurity Research"},"image":{"@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/corelanconsulting","https:\/\/x.com\/corelanc0d3r","https:\/\/x.com\/corelanconsulting","https:\/\/instagram.com\/corelanconsult"]},{"@type":"Person","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/3be5542b9b0a0787893db83a5ad68e8f","name":"corelanc0d3r","pronouns":"he\/him","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x","url":"https:\/\/secure.gravatar.com\/avatar\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3783bed6acd72d7fa5bb2387d88acbb9a3403e7cada60b2037e1cbb74ad451f9?s=96&d=mm&r=x","caption":"corelanc0d3r"},"description":"Peter Van Eeckhoutte is the founder of Corelan and a globally recognized expert in exploit development and vulnerability research. With over two decades in IT security, he built Corelan into a respected platform for deep technical research, hands-on training, and knowledge sharing. Known for his influential exploit development tutorials, tools, and real-world training, Peter combines a strong research mindset with a passion for education\u2014helping security professionals understand not just how exploits work, but why.","sameAs":["https:\/\/www.corelan-training.com","https:\/\/instagram.com\/corelanc0d3r","https:\/\/www.linkedin.com\/in\/petervaneeckhoutte\/","https:\/\/x.com\/corelanc0d3r"],"url":"https:\/\/www.corelan.be\/index.php\/author\/admin0\/"}]}},"views":6146,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/comments?post=466"}],"version-history":[{"count":0,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/466\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/media?parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/categories?post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/tags?post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}