In Configuration Manager, the AddDriverContent Windows Management Instrumentation (WMI) class method 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 ); |
Parameters
- ContentIDs
- Data type: UInt32 ArrayQualifiers: [in]The IDs for content to add to the driver package.
- ContentSourcePath
- 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.
- bRefreshDPs
- Data type: BooleanQualifiers: [in, optional]true, by default, if driver package content is to be replicated to the distribution points.
Return Values
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.
Remarks
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 machine for more information.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.
See Also
Send comments about this topic to Microsoft.