Enable Drive AutoRun

This Automation Manager object turns on AutoRun for all plugged-in drives (USB, CD, DVD, etc.).

Requires PowerShell 5.0

Before using this Automation Manager Object, you must install PowerShell 5.0.

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.
Result String String Object execution error details.

Example Input Parameters

No input parameters required.

This object changes Registry values to enable or disable CD-ROM drives as follows:

HKLM\SYSTEM\CurrentControlSet\Services\cdrom

The 'Start' property’s values are: 1 = Enabled, 4 = Disable.