The Registry does not contain information for the UPS service until the user checks the Uninterruptible Power Supply Is Installed checkbox in the UPS dialog box and then chooses the OK button. Changes to settings should be made by using the UPS icon in Control Panel.
The UPS service will not start unless the UPS subkey is present in the Registry, all parameters are present in the Registry, and all values are within the correct range. If any of these elements are missing or in error, a message announces that the UPS service is not correctly configured. All corrections can be made using the UPS icon in Control Panel.
The UPS parameters remain in the Registry if the user uninstalls UPS.
The path for the UPS subkey is the following:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPS
BatteryLife REG_DWORD 2 to 720 minutes
Specifies the life of the UPS backup battery when fully charged.
Default: 2 (minutes)
CommandFile REG_EXPAND_SZ Filename
Specifies the name of a command file to execute immediately before shutting down.
Default: (empty)
FirstMessageDelay REG_DWORD 0 to 120 seconds
Specifies the number of seconds between initial power failure and the first message sent to the users. If power is restored within the FirstMessageDelay time, no message is sent, although the event is logged.
Default: 5 (seconds)
MessageInterval REG_DWORD 5 to 300 seconds
Specifies the number of seconds between messages sent to users to inform them of power failure.
Default: 120 (seconds)
Options REG_DWORD Value
Defines the bit mask for messages related to options in the UPS dialog box, as the following:
Installed 0x00000001
PowerFailSignal 0x00000002
LowBatterySignal 0x00000004
CanTurnOff 0x00000008
PosSigOnPowerFail 0x00000010
PosSigOnLowBattery 0x00000020
PosSigShutOff 0x00000040
CommandFile 0x00000080
There are no default values in the registry for Options. They are set in the UPS application of Control Panel. For example, if you select only Power Failure Signal, Low Battery Signal At Least 2 Minutes Before Shutdown, and Remote UPS Shutdown, then the registry value will be 0xf. However, if you also change all UPS Interface Voltages from negative (default) to positive, then the registry value will be 0x7f.
Port REG_SZ Port name
Specifies the name of the serial port the UPS is connected to.
Default: COM1:
RechargeRate REG_DWORD 1 to 250 minutes
Specifies the recharge rate of the UPS backup battery.
Default: 100 (minutes)