Disable USB Devices

This Automation Manager object disables all USB drives on a computer. This does not affect mouse or keyboard devices with USB connections.

Using this object in an Automation Policy will require affected computers to be re-started in order for the action to be carried out.

Privileges

Normal

Input Parameters

None

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

No input parameters required.

This object changes Registry values to enable or disable USB devices as follows:

HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR

The 'Start' property’s values are: 3 = Enabled, 4 = Disabled.