共用方式為


SMS_PackageBaseclass Server WMI Class

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

The SMS_PackageBaseclass Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that serves as the abstract base class for all packages, for example, SMS_BootImagePackage Server WMI Class, SMS_DriverPackage Server WMI Class, and SMS_SoftwareUpdatesPackage Server WMI Class.

Class SMS_PackageBaseclass : SMS_BaseClass
{
      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 Manufacturer;
      String MIFFilename;
      String MIFName;
      String MIFPublisher;
      String MIFVersion;
      String Name;
      String PackageID;
      UInt32 PackageType;
      UInt32 PkgFlags;
      UInt32 PkgSourceFlag;
      String PkgSourcePath;
      String PreferredAddressType;
      UInt32 Priority;
      Boolean RefreshPkgSourceFlag;
      SMS_ScheduleToken RefreshSchedule[];
      String ShareName;
      UInt32 ShareType;
      DateTime SourceDate;
      String SourceSite;
      UInt32 SourceVersion;
      String StoredPkgPath;
      UInt32 StoredPkgVersion;
      String Version;
};

Methods

The SMS_PackageBaseclass class does not define any methods.

Properties

  • ActionInProgress
    Data type: UInt32

    Access type: Read-only

    Qualifiers: [read, ResID(733), ResDLL("SMS_RSTT.dll"), ResIDValueLookup("ActionInProgress")]

    The current action that is being performed on the package by Configuration Manager. Possible values are:

    Value Description

    0

    NONE

    1

    UPDATE

    2

    ADD

    3

    DELETE

  • AlternateContentProviders
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(739), ResDLL("SMS_RSTT.dll"), large, lazy]

    An XML string to set alternate content provider settings. This property does not apply to a software update package or a driver package.

  • Description
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(706), ResDLL("SMS_RSTT.dll")]

    The long description of the package.

  • ExtendedData
    Data type: UInt8 Array

    Access type: Read/Write

    Qualifiers: [ResID(735), ResDLL("SMS_RSTT.dll"), large, lazy]

    The XML blob for image deployment.

  • ExtendedDataSize
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [lazy, ResID(736), ResDLL("SMS_RSTT.dll")]

    The size of extended data for the package. The default value is 0.

  • ForcedDisconnectDelay
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(719), ResDLL("SMS_RSTT.dll")]

    The time, in minutes, that Configuration Manager waits before forcibly disconnecting users from the distribution point share. The default value is 5 minutes.

  • ForcedDisconnectEnabled
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(717), ResDLL("SMS_RSTT.dll")]

    true if Configuration Manager should forcibly disconnect users from the distribution point share when a share violation occurs while updating, refreshing, or deleting package source files. The default value is false.

    Note

    Enable this property with caution. Forcibly disconnecting users can have adverse effects on the client.

  • ForcedDisconnectNumRetries
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(718), ResDLL("SMS_RSTT.dll")]

    The number of times Configuration Manager attempts to disconnect a user from the distribution point share. The default number of retries is 2.

  • Icon
    Data type: UInt8 Array

    Access type: Read/Write

    Qualifiers: [ResID(724), ResDLL("SMS_RSTT.dll"), large]

    Optional. Array representing the file that contains the icon to use for the package. If it is used, this icon replaces the default package icon in the Configuration Manager console.

  • IconSize
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [lazy, ResID(723), ResDLL("SMS_RSTT.dll")]

    The size of the icon, in bytes. The default value is 0. Set this property to 0 to clear the icon.

  • IgnoreAddressSchedule
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(722), ResDLL("SMS_RSTT.dll")]

    true if Configuration Manager ignores any schedule of the sender specified by PreferredAddressType. The default value is false.

  • ISVData
    Data type: UInt8 Array

    Access type: Read/Write

    Qualifiers: [ResID(737), ResDLL("SMS_RSTT.dll"), large, lazy]

    ISV extensibility data.

  • ISVDataSize
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [lazy, ResID(738), ResDLL("SMS_RSTT.dll")]

    The size, in bytes, of ISVData. The default value is 0.

  • Language
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(704), ResDLL("SMS_RSTT.dll")]

    The language of the package. This property is used with Manufacturer, Name, and Version to identify a package in the console. For example, you might have an English version and a German version of the same package.

  • LastRefreshTime
    Data type: DateTime

    Access type: Read-only

    Qualifiers: [read, ResID(726), ResDLL("SMS_RSTT.dll")]

    The last date and time when the package source was refreshed at its distribution points.

  • Manufacturer
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(705), ResDLL("SMS_RSTT.dll")]

    The manufacturer (publisher) of the package.

  • MIFFilename
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(729), ResDLL("SMS_RSTT.dll")]

    The name of the Management Information Format (MIF) file that contains the package status.

  • MIFName
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(731), ResDLL("SMS_RSTT.dll")]

    Name of the MIF file that contains the program status for the package. The file name extension must be .mif. For more information, see the Remarks section later in this topic.

  • MIFPublisher
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(730), ResDLL("SMS_RSTT.dll")]

    The name of the software publisher of the package.

  • MIFVersion
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(732), ResDLL("SMS_RSTT.dll")]

    The version number of the package.

  • Name
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(702), ResDLL("SMS_RSTT.dll")]

    The name of the package. The default name is "".

  • PackageID
    Data type: String

    Access type: [key, ResID(701), ResDLL("SMS_RSTT.dll")]

    A unique, auto-generated key that is used to relate programs, advertisements, and distribution points to the package.

  • PackageType
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(734), ResDLL("SMS_RSTT.dll")]

    The type of the package. Possible values are:

    Value Description

    0

    Regular software distribution package.

    3

    Driver package.

    4

    Task sequence package.

    5

    Software update package.

    6

    Device setting package.

    257

    Image package.

    258

    Boot image package.

    259

    Operating system install package.

  • PkgFlags
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [bits, ResID(728), ResDLL("SMS_RSTT.dll")]

    Flags specifying special properties of the package. Possible values are:

    Hex (Bit) Description

    0x01000000 (24)

    DO_NOT_DOWNLOAD. Do not download the package to branch distribution points, as it will be pre-staged.

    0x02000000 (25)

    PERSIST_IN_CACHE. Persist the package in the cache.

    0x04000000 (26)

    USE_BINARY_DELTA_REP. Marks the package to be replicated by distribution manager using binary delta replication.

    0x10000000 (28)

    NO_PACKAGE. The package does not require distribution points.

    0x20000000 (29)

    USE_SPECIAL_MIF. This value determines if Configuration Manager uses MIFName, MIFPublisher, and MIFVersion for MIF file status matching. Otherwise, Configuration Manager uses Name, Manufacturer, and Version for status matching. For more information, see the Remarks section later in this topic.

    0x40000000 (30)

    DISTRIBUTE_ON_DEMAND. The package is allowed to be distributed on demand to branch distribution points.

  • PkgSourceFlag
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(707), ResDLL("SMS_RSTT.dll"), ResIDValueLookup("PkgSourceFlag")]

    Flag indicating the method of reading the package source files. Possible values are listed below. The default value is STORAGE_NO_SOURCE (1).

    Value Description

    0

    STORAGE_NEEDS_SPECIFYING. The user specifies the source file storage.

    1

    STORAGE_NO_SOURCE. The program does not use source files.

    2

    STORAGE_DIRECT. Take source files directly from the source without compression. Use this flag when the source files are located on the local server or when a Universal Naming Convention (UNC) path has been specified to a persistent storage location.

    3

    STORAGE_COMPRESS. Compress the source files and copy them to the site server. Use this flag when the package source files are coming from a CD or a nonpersistent medium. Configuration Manager puts the path to where the files were copied in StoredPkgPath.

    You cannot specify a refresh schedule when you select this flag. If you call the RefreshPkgSource method, the CD or specified source medium must be in a ready state.

    4

    STORAGE_LOCAL. Take source files from a local source.

  • PkgSourcePath
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(708), ResDLL("SMS_RSTT.dll")]

    Location of the files of update contents represented by the package. The location can be either a full local path or a UNC path. Make sure that this location contains all the files and subdirectories needed to complete the program, including any scripts.

  • PreferredAddressType
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(721), ResDLL("SMS_RSTT.dll")]

    Preferred sender to use when copying the package source files to distribution points. Possible values are listed below. Configuration Manager determines which sender to use if a value is not specified.

    • ADDR_NONE()

    • ADR_LAN(MS_LAN)

    • ADDR_MAPI(MS_MAPI)

    • ADDR_RAS_ASYNC(MS_ASYNC_RAS)

    • ADDR_RAS_ISDN(MS_ISDN_RAS)

    • ADDR_RAS_X25(MS_X25_RAS)

    • ADDR_RAS_SNA(MS_SNA_RAS)

    • ADDR_SNA_BATCH(MS_BATCH_SNA)

    • ADDR_SNA_INTER(MS_INTER_SNA)

    • ADDR_COURIER(MS_COURIER)

  • Priority
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(720), ResDLL("SMS_RSTT.dll"), ResIDValueLookup("Priority")]

    Sending priority of the package. Possible values are defined for the Priority property of SMS_Advertisement Server WMI Class.

  • RefreshPkgSourceFlag
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [lazy, ResID(709), ResDLL("SMS_RSTT.dll")]

    true if Configuration Manager should refresh the package source files. The default value is false. This property always contains false when read.

    Setting this property to true has the same effect as calling the RefreshPkgSource Method in Class SMS_Package.

    Do not use this property to update the package source files. Instead, use the RefreshPkgSource method.

  • RefreshSchedule
    Data type: SMS_ScheduleToken Array

    Access type: [max(15), lazy, ResID(725), ResDLL("SMS_RSTT.dll")]

    An embedded array of SMS_ScheduleToken objects that define when Configuration Manager will update the package source files at the distribution points. You can specify a refresh schedule only when PkgSourceFlag is STORAGE_DIRECT.

  • ShareName
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(715), ResDLL("SMS_RSTT.dll")]

    Share to use on the distribution point. The name can include directories. If the directories do not exist, Configuration Manager creates them. You must specify a share name if you set ShareType to SHARE_SPECIFIC.

  • ShareType
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(714), ResDLL("SMS_RSTT.dll"), ResIDValueLookup("ShareType")]

    The type of share used by the distribution point when sharing the package. Possible values are listed below, with the default value SHARE_COMMON. If you specify SHARE_SPECIFIC, you must provide a value for ShareName.

    Value Description

    1

    SHARE_COMMON

    2

    SHARE_SPECIFIC

  • SourceDate
    Data type: DateTime

    Access type: Read-only

    Qualifiers: [read, ResID(713), ResDLL("SMS_RSTT.dll")]

    Date and time the package source files were last updated on the distribution points.

  • SourceSite
    Data type: String

    Access type: Read-only

    Qualifiers: [read, ResID(716), ResDLL("SMS_RSTT.dll")]

    The site code of the site where the package originated.

  • SourceVersion
    Data type: UInt32

    Access type: Read-only

    Qualifiers: [read, ResID(712), ResDLL("SMS_RSTT.dll")]

    The version of the package available at the site. Incremented when the package is updated or the source files are refreshed.

  • StoredPkgPath
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(710), ResDLL("SMS_RSTT.dll")]

    Full path to the location where Configuration Manager stores the compressed version of the source files on the site server. This path is set by Configuration Manager when the value of PkgSourceFlag is STORAGE_COMPRESS.

  • StoredPkgVersion
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(711), ResDLL("SMS_RSTT.dll")]

    The version of the compressed source files for the stored package. The default value is 0.

  • Version
    Data type: String

    Access type: Read/Write

    Qualifiers: [ResID(703), ResDLL("SMS_RSTT.dll")]

    The version of the package.

Remarks

Class qualifiers for this class include:

  • Abstract

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

If you set the USE_SPECIAL_MIF flag of the PkgFlags property, Configuration Manager looks in the %TEMP% directory or the %windir% directory for the install status MIF file that is specified in the MIFFileName property. If Configuration Manager does not find the file, it searches for all MIF files in those directories. A case-insensitive comparison is made of the values for MIFName, MIFPublisher, and MIFVersion to those specified in the MIF file. If a match is found, the status that is specified in the MIF file is used as the install status for the program, which indicates whether the program successfully executed. If Configuration Manager cannot find a match, or if USE_SPECIAL_MIF is not specified, Configuration Manager uses the program exit code to set the install status for the program. An exit code of zero is considered successful. Any other values are considered application-specific error codes.

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

Software Distribution Server WMI Classes