function fred_report_info() { var info={report_cat : "SYSTEM", report_name : "Backup / Restore settings", report_author : "Gillen Daniel", report_desc : "Dump files / directories not to snapshot / backup and registry keys not to restore", fred_api : 2, hive : "SYSTEM" }; return info; } function IsValid(val) { if(typeof val !== 'undefined') return true; else return false; } function print_table_row(cell01,cell02) { println(" ",cell01,"",cell02,""); } function ListValues(root_key) { var values=GetRegistryKeys(root_key); if(IsValid(values)) { println("

"); println(" "); for(var i=0;i"); println(" "); println(" "); println(" "); } } println("
",values[i],""); var strings=RegistryKeyValueToStringList(val.value,val.type); for(var ii=0;ii"); } println("
"); println("

"); } else { println(" None"); } } function fred_report_html() { var val; println("

Backup / Restore settings

"); // Get current controlset var cur_controlset=GetRegistryKeyValue("\\Select","Current"); if(IsValid(cur_controlset)) { cur_controlset=RegistryKeyValueToString(cur_controlset.value,cur_controlset.type); // Current holds a DWORD value, thus we get a string like 0x00000000, but // control sets are referenced only with the last 3 digits. cur_controlset="ControlSet"+String(cur_controlset).substr(7,3); println(" Directories / files not to back up in Volume Shadow Copies"); ListValues(cur_controlset+"\\Control\\BackupRestore\\FilesNotToSnapshot"); println(" Directories / files not to back up or restore by backup apps"); ListValues(cur_controlset+"\\Control\\BackupRestore\\FilesNotToBackup"); println(" Registry nodes or values not to restore by backup apps"); ListValues(cur_controlset+"\\Control\\BackupRestore\\KeysNotToRestore"); } else { println("

"); println(" Unable to determine current control set!
"); println(" Are you sure you are running this report against the correct registry hive?"); println("

"); } }