Previous Topic: COM ClassNext Topic: DISK Class


DEVICE Class

Each record in the DEVICE class defines a Windows hardware device as listed in the Windows Control Panel, Devices.

The key of the DEVICE class record is the name of the device being controlled.

The following definitions describe the properties contained in this class record. Most properties are modifiable and can be manipulated using selang or the administration interfaces. Non-modifiable properties are marked informational.

STARTUPTYPE

Defines how (when) the device is started. Options are:

automatic

Starts the device automatically during system startup.

boot

Starts the device every time the system starts, before any other devices start. Select this option for critical devices essential to system operation.

disabled

Prevents users from starting the device. The system can still start disabled devices.

manual

Allows the device to be started by a user or a dependent device.

system

Starts the device every time the system starts, after the Boot devices start. Select this option for critical devices essential to system operation.

Use the starttype parameter with the chres or editres commands to modify this property.

STATUS

Changes the current service state. Options are: started, stopped, and paused.

Use the status parameter with the chres or editres commands to modify this property.

IMAGEPATH

The fully qualified path for the specified device.

PROFILE

A string that specifies a path to the user's profile. This string can include a local absolute path, or a UNC path.

Use the profile parameter with the chusr, editusr, or newusr command to modify this property.

Example: Activate a modem

To display the status of the modem, enter the selang command:

showres DEVICE modem

To activate the modem, enter the command:

chres device modem status(started)