다음을 통해 공유


AddDriverContent Method in Class SMS_DriverPackage

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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 Array

    Qualifiers: [in]

    The IDs for content to add to the driver package.

  • ContentSourcePath
    Data type: String Array

    Qualifiers: [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: Boolean

    Qualifiers: [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

Concepts

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