RefreshPkgSource Method in Class SMS_Package

The RefreshPkgSource WMI class method causes a refresh of the source files for a package on the site's distribution points.

The following syntax is simplified from MOF code and is intended to show you the definition of the method.

sint32 RefreshPkgSource( );

Parameters

This class method has no parameters.

Return Values

This method returns a sint32 which is always zero (0).

Remarks

This is the only way to force an update of the source files, other than by creating a RefreshSchedule value for the package. For details on the RefreshSchedule property, see SMS_Package.

If the package specifies STORAGE_COMPRESS for the PkgSourceFlag property, the CD or source medium needs to be in a ready state at the time you call this method.

See Also

Software Distribution Classes, SMS_Package