AddDriverContent Method in Class SMS_DriverPackage
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
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.
Syntax
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 computer 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
SMS_DriverPackage Server WMI Class
RemoveDriverContent Method in Class SMS_DriverPackage
ValidateNewPackageSource Method in Class SMS_DriverPackage
How to Create a Driver Package for a Windows Driver in Configuration Manager