#160971 - 2006-04-2104:01 AMBackup System State for XP Pro
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11634
Loc: Space
Here is a script that will use the built-in Shadow Copy service and NTBACKUP to backup the System State of a Windows XP Pro workstation.
XP Home and XP Media Center don't include the NTBACKUP utility and Servers should use a more feature rich application, though this script will run properly on Server 2003 if you modify the version check.
WARNING!! You should run an up to date Antivirus scan and an up to date Anti-Spyware utility and also run a CHKDSK /R on your system first to verify that there are no problems with the system before you start running this script.
This script is quite useful when something you recently installed has messed up your system and you're having troubles fixing whatever caused it. You simply run the NTBACKUP utility and select the version of the backup that you feel did not have the issue and restore it. This will restore the entire REGISTRY and main startup files back to the way they were before the problem happened. Note though that if you installed some other software since the last restore you restore back to you will still have the files on your system but the REGISTRY will not know that you have installed the program and you will need to re-install it again.
NOTE: You must be running KiXtart v4.52 beta 2 or newer in order to properly run this script.
You can change the number of days you want to save backups and you can change the folder location if you like. Currently the script uses $Folder='C:\Backup\' and will remove backup files that are 7 days or older.
A sample of the file name would look something like this 2006-04-20_183620-SystemState.bkf
YYYY-MM-DD_HHMMSS allows accurate sorting by name or date
Setup a batch file and run it with a daily scheduled task to run at noon or whenever and it will silently take care of the backups for you automatically.