IPAddr
      4595  Windows XP System State backup. 21-Dec-01
      In tip 2500, I explained how to backup your NTUser.dat and the computer's registry hives, using a System State backup.
      NTBackup for Windows XP backs up the the computer's registry hives to the %windir%\Repair folder.
      NTBackup for Windows XP does NOT make a copy of your NTUser.dat to disk.
      If you want to use the technique in tip 2500, in addition to the System State, you would backup \Documents and Setting\%UserName%, minus My Documents.
      To recover the registry, you would boot the Recovery Console and copy the computer's registry hives to %Windir%\System32\Config.
      To recover your profile, you would logon as Administrator and restore \Documents and Setting\%UserName% from the appropriate .bkf file.
      http://www.jsifaq.com/Lib/js/GenericFunctions.js has a nice Javascript print page function in it.
      
      2500  Backup the Registry and system State in batch, without a backup device.(Modified) 15-Jun-00
      In tip 2045 and links, I explained how to create an ERD, that the ERD does not provide for a controlled registry restore, how to backup/restore the System State, etc...
      When you backup the System State, NTBackup backs up the following hives into the %SystemRoot%\Repair\Regback folder
      
      default
      NTUSER.DAT    (for the logged on user)(Use Regback.exe if your's doesn't.)
      SAM
      SECURITY
      software
      SYSTEMNOTE: The System State backup in Windows XP and later place the hives in the %SystemRoot%\Repair folder.
      You can use the System State backup to restore the system state,
      but if you need to restore an older registry only,
      it is best to copy the hives, using an alternate install.
      
      By cutting/pasting the .bks path from the System State backup job's Properties,
      I have created a batch file that maintains 3 versions of the System State and 1 month of registry versions.
      I then delete the System State backup job and schedule my batch.
      
      NOTE: While my laptop is docked, My server also backs up the network.
      
      To use the following batch file, you must change the:
      
      set bkpfldr=D:\ZZZBackup to your folder.
      
      set bks="@C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\System_State_My.bks"
      to the path you cut from the System State backup job's Properties.
      
      The batch contains:
      
  @echo off
  set bkpfldr=D:\ZZZBackup
  set bks="@C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\System_State_My.bks"
  REM remove temporary registry files
  if exist "C:\Documents and Settings\Reg00*" del /q "C:\Documents and Settings\Reg00*"
  if exist %Systemroot%\System32\reg00* del /q %Systemroot%\System32\reg00* 
  if not exist %bkpfldr%\bkp*.bkf goto BKPREG
  if exist %bkpfldr%\bkp*.old_bkf del /q %bkpfldr%\bkp*.old_bkf
  if exist %bkpfldr%\bkp*.prev_bkf rename %bkpfldr%\bkp*.prev_bkf *.old_bkf
  if exist %bkpfldr%\bkp*.bkf rename %bkpfldr%\bkp*.bkf *.prev_bkf
  :BKPREG
  REM date /t returns Day_of_Week, Month, Day and year in my install. Alter the set statements if your install uses a different date format.
  for /f "tokens=1,2,3,4* delims=/ " %%i in ('date /t') do set TDDAY=%%i&set TDMM=%%j&set TDDD=%%k&set TDYY=%%l
  for /f "tokens=1,2* delims=: " %%i in ('time /t') do set TDHH=%%i&set TDMIN=%%j
  REM Cut and modified from a scheduled System State backup
  C:\WINNT\system32\ntbackup.exe backup %bks% /n "Bkp%TDYY%%TDMM%%TDDD%%TDHH%%TDMIN%" /d "Bkp%TDYY%%TDMM%%TDDD%%TDHH%%TDMIN%"
    /v:no /r:no /rs:no /hc:off /m normal /j "Bkp%TDYY%%TDMM%%TDDD%%TDHH%%TDMIN%" /l:f /f "%bkpfldr%\Bkp%TDYY%%TDMM%%TDDD%%TDHH%%TDMIN%.bkf"
  MD %bkpfldr%\REGBKP%TDYY%%TDMM%%TDDD%
  Copy %SystemRoot%\Repair\regback\*.* %bkpfldr%\REGBKP%TDYY%%TDMM%%TDDD%
  REM Set old to one month ago
  set TDMM=!%TDMM%
  set TDMM=%TDMM:!0=%
  set TDMM=%TDMM:!=%
  set /a TDMM=%TDMM% + 100
  set /a TDMM=%TDMM% - 1
  if %TDMM% EQU 100 SET /a TDMM=112&SET /a TDYY=%TDYY% - 1
  set old=%bkpfldr%\REGBKP%TDYY%%TDMM:~1,2%%TDDD%
  REM Enumerate each Registry backup folder
  for /f "Tokens=*" %%i in ('dir /B /AD /S %bkpfldr%') do call :parse %%i
  goto end
  :parse
  set folder=%1
  if /i not "%folder:~0,19%"=="%bkpfldr%\REGBKP" goto end
  if /i "%folder%" LSS "%old%" RD /S /Q %folder%
  :endNOTE: I occassionally manually remove old backup catalogues, using the restore GUI. 

2045 How do I create an ERD in Windows 2000? 18-Feb-00 See tip 2532 for scripting the creation of an ERD in Windows 2000. To create an Emergency Repair Disk:
  1. Start / Programs / Accessories / System Tools / Backup.
  2. On the Welcome screen, press Emergency Repair Disk, or Use the Tools menu to Create an Emergency Repair Disk.
  3. Insert a formatted 1.44MB floppy.
  4. Check the Also back up the registry... check box.
  5. Press OK.
0099 Do desktops load before the logon script finishes? 20-Mar-97 Edit or add value (REG_DWORD): HKEY_CURRENT_USER\software\microsoft\windows nt\currentversion\winlogon value: RunLogonScriptSync 0 = Don't wait for the logon script to complete before loading the desktop. 1 = Wait for the logon script to complete before loading the desktop. Also add this to: HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\winlogon 0060 Add new options to that right click in Windows NT 4.0. 26-Feb-97 When you right click on a file in Explorer, the valid choices for that extension are presented. To add a new choice, select view/options/File Types. Scroll to the file type you wish to ammend, select it, and click the Edit button. Click the New button. Type the "Action" (Edit, Smile, Print, view, ...) and the full path to the application (and any command line switches/parametets) required to perform the "Action". If you want to change an "Action", click "Edit" instead of "New". I suggest you edit the "Actions" of "Text Document", "Write Document" and any type that uses DDE such as "Microsoft Word Document" to see the possibilities. 0015 Shutdown button on the Welcome dialog box. 01-Jan-97 To display a shutdown button at Login, edit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon Value: ShutdownWithoutLogon REG_SZ 0 or 1 When this value is set to 1, you can select Shutdown from the Welcome dialog box. If the value is 0, the Shutdown button does not appear. 0024 Logon Welcome/Legal Notice. 01-Jan-97 The Registry value entries that control the logon sequence for starting Windows NT are found under the following Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon LegalNoticeCaption REG_SZ Default: (none) Specifies a caption for a message to appear when the user presses CTRL+ALT+DEL during logon. Add this value entry if you want to add a warning to be displayed when a user attempts to log on to a Windows NT system. The user cannot proceed with logging on without acknowledging this message. To specify text for the message, you must also specify a value for LegalNoticeText. Note: You can use the System Policy Editor to change this value. LegalNoticeText REG_SZ Default: (none) Specifies the message to appear when the user presses CTRL+ALT+DEL during logon. Add this value entry if you want to add a warning to be displayed when a user attempts to log on to a Windows NT system. The user cannot proceed with logging on without acknowledging this message. To control presentation, you may insert a lf/cr by copying the contents of lfcr.npd to the clipboard and pasteing it as you type. To include a caption for the logon notice, you must also specify a value forLegalNoticeCaption. Note: You can use the System Policy Editor to change this value. LogonPrompt REG_SZ Default: "Enter a user name and password that is valid for this system." The text entered appears in the Logon Information dialog box. This is designed for additional legal warnings to the user before they log on. This value entry does not appear in the Registry unless you add it. Welcome REG_SZ Default: (Title only; no message) The text entered appears in the caption bar beside the title of the Begin Logon, Logon Information, Workstation Locked, and Unlock Workstation dialog boxes. This value entry does not appear in the Registry unless you add it.