The SMS_DriverPackage Windows Management Instrumentation (WMI) class is an SMS Provider server class, in System Center 2012 Configuration Manager, that represents the package that is the unit of distribution of program binaries with which one or more device drivers are associated.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_DriverPackage : SMS_PackageBaseclass
{
	UInt32 ActionInProgress;
	String AlternateContentProviders;
	String Description;
	UInt8 ExtendedData[];
	UInt32 ExtendedDataSize;
	UInt32 ForcedDisconnectDelay;
	Boolean ForcedDisconnectEnabled;
	UInt32 ForcedDisconnectNumRetries;
	UInt8 Icon[];
	UInt32 IconSize;
	Boolean IgnoreAddressSchedule;
	UInt8 ISVData[];
	UInt32 ISVDataSize;
	String Language;
	DateTime LastRefreshTime;
	String LocalizedCategoryInstanceNames[];
	String Manufacturer;
	String MIFFilename;
	String MIFName;
	String MIFPublisher;
	String MIFVersion;
	String Name;
	UInt32 NumOfPrograms;
	String PackageID;
	UInt32 PackageType;
	UInt32 PkgFlags;
	UInt32 PkgSourceFlag;
	String PkgSourcePath;
	String PreferredAddressType;
	UInt32 Priority;
	Boolean RefreshPkgSourceFlag;
	SMS_ScheduleToken RefreshSchedule[];
	String SecuredScopeNames;
	String SedoObjectVersion;
	String ShareName;
	UInt32 ShareType;
	DateTime SourceDate;
	String SourceSite;
	UInt32 SourceVersion;
	String StoredPkgPath;
	UInt32 StoredPkgVersion;
	String Version;
};

Methods

The following table shows the methods in SMS_DriverPackage.

Method Description

AddChangeNotification Method in Class SMS_DriverPackage

Adds a driver package change notification.

AddDistributionPoints Method in Class SMS_DriverPackage

Adds the distribution points for the driver package.

AddDriverContent Method in Class SMS_DriverPackage

Adds a driver to the package and replicates to distribution points.

CheckSourceFolder Method in Class SMS_DriverPackage

Checks the source folder for this driver package.

RebuildPackage Method in Class SMS_DriverPackage

Restores the contents for this driver package.

RefreshPkgSource Method in Class SMS_DriverPackage

Refreshes the package source at all distribution points, when the package properties have not changed.

RemoveDriverContent Method in Class SMS_DriverPackage

Removes the specified driver from the driver package.

SetSourceSite Method in Class SMS_DriverPackage

Sets the code of the source site for the driver package.

Unlock Method in Class SMS_DriverPackage

Sets the source site to the current site, unlocking the driver package.

ValidateNewPackageSource Method in Class SMS_DriverPackage

Validates the new package source location by verifying the content.

Properties

ActionInProgress

Data type: UInt32Access type: Read-onlyQualifiers: [read]See SMS_PackageBaseclass Server WMI Class.
AlternateContentProviders

Data type: StringAccess type: Read/WriteQualifiers: [large, lazy]Not used for this class.
Description

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ExtendedData

Data type: UInt8 ArrayAccess type: Read/WriteQualifiers: [large, lazy]See SMS_PackageBaseclass Server WMI Class.
ExtendedDataSize

Data type: UInt32Access type: Read/WriteQualifiers: [lazy]See SMS_PackageBaseclass Server WMI Class.
ForcedDisconnectDelay

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ForcedDisconnectEnabled

Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ForcedDisconnectNumRetries

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
Icon

Data type: UInt8 ArrayAccess type: Read/WriteQualifiers: [large]See SMS_PackageBaseclass Server WMI Class.
IconSize

Data type: UInt32Access type: Read/WriteQualifiers: [lazy]See SMS_PackageBaseclass Server WMI Class.
IgnoreAddressSchedule

Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ISVData

Data type: UInt8 ArrayAccess type: Read/WriteQualifiers: [large, lazy]See SMS_PackageBaseclass Server WMI Class.
ISVDataSize

Data type: UInt32Access type: Read/WriteQualifiers: [lazy]See SMS_PackageBaseclass Server WMI Class.
Language

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
LastRefreshTime

Data type: DateTimeAccess type: Read-onlyQualifiers: [read]See SMS_PackageBaseclass Server WMI Class.
LocalizedCategoryInstanceNames

Data type: String ArrayAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
Manufacturer

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
MIFFilename

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
MIFName

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
MIFPublisher

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
MIFVersion

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
Name

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
NumOfPrograms

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
PackageID

Data type: StringAccess type: [key]See SMS_PackageBaseclass Server WMI Class.
PackageType

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.For this class, the package type is PKG_TYPE_DRIVER (3).
PkgFlags

Data type: UInt32Access type: Read/WriteQualifiers: [bits]See SMS_PackageBaseclass Server WMI Class.
PkgSourceFlag

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
PkgSourcePath

Data type: StringAccess type: Read/WriteQualifiers: NoneThe UNC path to the driver package.
PreferredAddressType

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
Priority

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
RefreshPkgSourceFlag

Data type: BooleanAccess type: Read/WriteQualifiers: [lazy]See SMS_PackageBaseclass Server WMI Class.
RefreshSchedule

Data type: SMS_ScheduleToken ArrayAccess type: Qualifiers: [max(15), lazy]See SMS_PackageBaseclass Server WMI Class.
SecuredScopeNames

Data type: String ArrayAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
SedoObjectVersion

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ShareName

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
ShareType

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
SourceDate

Data type: DateTimeAccess type: Read-onlyQualifiers: [read]See SMS_PackageBaseclass Server WMI Class.
SourceSite

Data type: StringAccess type: Read-onlyQualifiers: [read]See SMS_PackageBaseclass Server WMI Class.
SourceVersion

Data type: UInt32Access type: Read-onlyQualifiers: [read]See SMS_PackageBaseclass Server WMI Class.
StoredPkgPath

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
StoredPkgVersion

Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.
Version

Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_PackageBaseclass Server WMI Class.

Remarks

Class qualifiers for this class include:

  • Secured

  • Icon("Package.ico")

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Your application uses this class to create a driver package that contains the content for one or more device drivers. When the application adds a new driver, the content is added to the driver package share. The driver package can then be copied to a distribution point so that computers can install the drivers. For more information, see How to Create a Driver Package for a Windows Driver in Configuration Manager.

Requirements

Runtime Requirements

Development Requirements

See Also