Device Manager 2011 includes several Windows Management Instrumentation (WMI) providers that you can use to script any action that can be done in the Device Manager 2011 user interface.
For general information about Windows Management
For more information about using WMI for scripting, see
The creation of a device imaging deployment follows the same
model as an advertisement. For more information and sample code,