The AddDriverContent Windows Management Instrumentation (WMI) class method, in Configuration Manager, adds a driver to the driver package and replicates the driver content to distribution points.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 AddDriverContent( UInt32 ContentIDs, String ContentSourcePath, Boolean bRefreshDPs );
- Data type: UInt32 ArrayQualifiers: [in]The IDs for content to add to the driver package.
- Data type: String ArrayQualifiers: [in]The source paths where the content files are located. In most cases, these paths should be the same as the settings for the ContentSourcePath properties of the SMS_Driver Server WMI Class objects represented by the driver package. The paths can be overridden with local paths if the SMS Provider does not have access to the central site for Configuration Manager.
- Data type: BooleanQualifiers: [in, optional]true, by default, if driver package content is to be replicated to the distribution points.
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For information about handling returned errors, see About Configuration Manager Errors.
An example of the use of this method is provided in How to Create a Driver Package for a Windows Driver in Configuration Manager.
If the call to this method fails, check the Smsprov.log file on the provider computer for more information.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.