Alter.Org.UA  
 << Back Home RU ru   Donate Donate www/www1/www2

Fast reboot NT4/w2k/XP/2003

by Axxie (axxieX@mail.ru (remove X)), Alter (alterX@alter.org.ua (remove X))

The main idea is to implement immediate reboot functionality in w2k/XP and newer using Ctrl-Alt-Shift-Del hot-key (like in NT4).

Last version - freboot_v2c.rar/tgz (33.3 Kb/44.3 Kb) , its sources - freboot_v2c_src.rar/tgz (23.8 Kb/26.5 Kb)

This utility allows you to perform immediate system reboot correctly with possibility of saving User Profile. It also allows to initiate usual shutdown/reboot/logoff/poweroff process from command prompt with possibility of forced application termination.

freboot.exe without any switches or with -u switch falls into wait state until Ctrl-Alt-Shift-Del sequence is pressed. When this sequence is entered, system goes to reboot immediately (~2-3 sec.). Note, that all applications are forced to terminate in this case. If you use -u User Profile of the current user will be saved (thus, FReboot is also useful under NT4 OS). Then system flushes all data from cache to disks, thus no problems with file system consistency shall occure (like it oftenly happens after simple poweroff or reset). Then system reboots.

To use this mode you need Administrator privileges
All other keys initiate normal shutdown/reboot/logoff/poweroff process with optional forcing applications to terminate.

Here is the list of all available switches:

key description
<none> sync disks and reboot immediately when Ctrl-Alt-Shift-Del is pressed
-u save User Profiles, sync disks and reboot immediately when Ctrl-Alt-Shift-Del is pressed
-i reboot immediately (can be used with -u)
-r reboot
-s shutdown
-l logoff
-p poweroff
-f force applications to terminate
--script <script_path> execute specified application or bat-file before reboot
--setup run GUI setup dialog

Install notes

setup.bat installs FReboot.exe as automatically started application. See registry value

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run],"FastReboot"
This string value informs shell (explorer.exe) to run FReboot.exe with some switches. By default '-u' (wait for Ctrl-Alt-Shift-Del + save user profile) switch is used. If you have some services, those must be correctly stopped before shutdown, you can add '--script <script_full_path>' command to "FastReboot" value. After that FReboot will execute your script before initiating shutdown process. For example I use the following script 'stop_crit_svc.bat':

net stop "Apache"
net stop "OracleServiceRECOGN"
net stop "OracleOraHome81TNSListener"

and I have the following registry settings:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"FastReboot"="FReboot.exe -u --script C:\\Utils\\stop_crit_svc.bat"

The latest version of main utility - freboot_v2c.rar/tgz (33.3 Kb/44.3 Kb)


In addition during development process some intermediate products appeared:
1. Console reboot utility for NT4/w2k/XP. It can also be used in shortcut with some hot-key (for ex. Ctrl-Alt-Shift-\).
Its latest version - FastReboot_v1c.rar/tgz (21.8 Kb/22.7 Kb)
PS. All its functionality is moced to the main product, thus, it is deprecated,
2. Disk cache sync utility for NT4/w2k/XP. Against SysInternal's utility (sync.exe) DSync.exe can operate with removable media. This is useful for Flash-disks and UDF-formatted CD/DVD-RW.
Last version - DSync_v1c.rar/tgz (27.8 Kb/29.4 Kb)
3. Utility that enumerates logged in users.
Last version - EnumUsers_v1.rar/tgz (3 Kb/3.1 Kb)

History


To DSync.exe added suppression of annoying message box when accessing empty removable drive. Find new executable and sources here:
DSync_v1b.rar/tgz (27.8 Kb/29.4 Kb)
  • Also updated Fast Reboot package:
    freboot_v2c.rar/tgz (33.3 Kb/44.3 Kb) and freboot_v2c_src.rar/tgz (23.8 Kb/26.5 Kb)
    2005.04.12

    Fixed bug with sync'ing single volume with DSync.exe. Find new executable and sources here:
    DSync_v1b.rar/tgz (27.8 Kb/29.4 Kb)
  • Also updated Fast Reboot package:
    freboot_v2b.rar/tgz (33.3 Kb/44.2 Kb) and freboot_v2b_src.rar/tgz (23.8 Kb/26.4 Kb)
    2004.10.26

    freboot_v2a.rar/tgz (33.3 Kb/44.3 Kb) and freboot_v2a_src.rar/tgz (23.7 Kb/26.4 Kb)
    Added pre-boot script execution feature. If you have some services, those must be correctly stopped before shutdown, you can add '--script <script_full_path>' command to "FastReboot" command line (see readme.txt). After that FReboot will execute your script before initiating shutdown process.
  • Added protection from simultaneus execution of multiple copies of FReboot.exe
    2004.09.03

    freboot_v1i.rar/tgz (31.5 Kb/42.4 Kb) and freboot_v1i_src.rar/tgz (21.8 Kb/23.3 Kb)
    I'm very sorry again...
    We have made a lot of bugs in User Profile saving code. This option didn't work. Additionally it caused system to enter into strange half-hanged state. Already fixed.
    2003.11.06(11)

    freboot_v1g.rar/tgz (31.1 Kb/41.9 Kb) and freboot_v1g_src.rar/tgz (21.2 Kb/22.5 Kb)
    I'm sorry...
    Fixed bug with PUHandler.dll compilation. This library is used for saving User Profiles before reboot.
    Fixed bug in distribution. It didn't include PUHandler.dll before.
    Also removed dependence on headers and lib from Platform SDK and XP DDK.
    2003.10.29

    freboot_v1f.rar/tgz (30 Kb/40.7 Kb) and freboot_v1f_src.rar/tgz (20.4 Kb/21.7 Kb)
    New switch -i is added in order to initiate imemdiate reboot from command prompt. You can use -u to save User Profile.
    Fixed bug, which made command prompt switches unusable in Release version.
    2003.10.21

    freboot_v1d2.rar/tgz (29.9 Kb/40.6 Kb) and freboot_v1d2_src.rar/tgz (20.2 Kb/21.4 Kb)
    The main idea is implemented !!!
    If DSync is run without parameters, it flushes all disks.
    All binaries a packed to single archive.
    Compiled modules are distributed separately from sources.
    2003.09.18

    FastReboot_v1c.rar/tgz (21.8 Kb/22.7 Kb)
    Fixed bug with invalid switch handling. Icons are added to executable. LNK file now references icon from executable, not from shell32.dll.
    2003.08.24

    FastReboot_v1a.rar/tgz (19.6 Kb/20.3 Kb) contains sources, VC6 project file, compiled Release-version and installer for fshutdown.exe
    This is console utility, that performs shutdown/reboot/logoff/poweroff operations and allows force applications to terminate.
    fshutdown.exe accepts the following switches:
    -r reboot
    -s, -h shutdown
    -l logoff
    -p poweroff
    -f force applications to terminate
    setup.bat installs to Desktop shortcut to fsutdown.exe -rf with Ctrl-Alt-Shift-\ hot-key.
    2003.07.26

    DSync_v1.rar/tgz (27.6 Kb/29.1 Kb) contains sources, VC6 project file and compiled Release-version of DSync_v1.exe
    2003.06.03

    reboot_v1.rar/tgz (10 Kb/10.6 Kb) contains sources, VC6 project file and compiled Release-version of reboot.exe
    2003.04.11

    Please, send your comments and propositions here: Mail to axxieX@mail.ru (remove X)   , Mail to alterX@alter.org.ua (remove X)  

  • << Back designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2017