This method distributes the configuration package to the target collection.
public static void Deploy( string provpackageUniqueId, string collectionID, string name, string comments, bool includesubcoll, DateTime PresentTime, bool PresentTimeIsGMT, DateTime ExpirationTime, bool ExpirationTimeEnabled, bool ExpirationTimeIsGMT, UInt32 AdvertFlags, UInt32 RemoteClientFlags, string AssignedSchedule, UInt32 Priority );
[in] Identifier for the configuration package to be distributed.
[in] Identifier of the collection to which this package is distributed.
[in] Name of the advertisement.
[in] Optional. Comments about the advertisement.
[in] Trueif the configuration package is distributed to subcollections. Falseif the configuration package is not distributed to subcollections.
[in] Date and time that this method is called.
[in] Trueif PresentTimeis in Coordinated Universal Time (Greenwich Mean Time); Falseotherwise.
[in] Date and time that the configuration package expires.
[in] Trueif there is an expiration time set for the configuration package in ExpirationTime. Falseif the package does not expire.
[in] Trueif ExpirationTimeis in Coordinated Universal Time (Greenwich Mean Time); Falseotherwise.
[in] Flag indicating how the advertisement should be announced to the user. Initially no flag is set. Select flags from the following table.
Hex (Bit) value
IMMEDIATE. Announce the advertisement to the user immediately.
ONSYSTEMSTARTUP. Announce the advertisement to the user on system startup.
ONUSERLOGON. Announce the advertisement to the user on logon.
ONUSERLOGOFF. Announce the advertisement to the user on logoff.
WINDOWS_CE. The advertisement is for a device.
DONOT_FALLBACK. Do not fall back to unprotected distribution points.
ENABLE_TS_FROM_CD_AND_PXE. The task sequence is available to removable media and the Pre-Boot eXecution Environment (PXE) service point.
OVERRIDE_SERVICE_WINDOWS. Override maintenance windows in announcing the advertisement to the user.
REBOOT_OUTSIDE_OF_SERVICE_WINDOWS. Reboot outside of maintenance windows.
WAKE_ON_LAN_ENABLED. Announce the advertisement to the user with Wake On LAN enabled.
SHOW_PROGRESS. Announce the advertisement to the user showing task sequence progress.
NO_DISPLAY. The user should not run programs independently of the assignment.
ONSLOWNET. Assignments are mandatory over a slow network connection.
[in] Flags specifying how the program should run when the device is connected either locally or remotely to a distribution point. Initially no flag is set. Select flags from the following table.
Hex (Bit) value
BATTERY_POWER. Run the program by using battery power. This value is currently unused.
RUN_FROM_CD. Run the program from CD. This value is currently unused.
DOWNLOAD_FROM_CD. Download the program from CD. This value is currently unused.
RUN_FROM_LOCAL_DISPPOINT. Run the program from the local distribution point.
DOWNLOAD_FROM_LOCAL_DISPPOINT. Download the program from the local distribution point.
DONT_RUN_NO_LOCAL_DISPPOINT. Do not run the program if there is no local distribution point.
DOWNLOAD_FROM_REMOTE_DISPPOINT. Download the program from the remote distribution point.
RUN_FROM_REMOTE_DISPPOINT. Run the program from the remote distribution point.
DOWNLOAD_ON_DEMAND_FROM_LOCAL_DP. Download the program on demand from the local distribution point. This is only applicable for task sequences.
DOWNLOAD_ON_DEMAND_FROM_REMOTE_DP. Download the program on demand from the remote distribution point. This is only applicable for task sequences.
BALLOON_REMINDERS_REQUIRED. Balloon reminders are required.
RERUN_ALWAYS. Always rerun the program.
RERUN_NEVER. Never rerun the program.
RERUN_IF_FAILED. Rerun the program if execution previously failed.
RERUN_IF_SUCCEEDED. Rerun the program if execution previously succeeded.
[in] Instance of the SMS_ScheduleTokenclass that specifies the time when the advertisement must start on the devices.
[in] Priority used in replicating the advertisement to secondary site servers. The default value is NORMAL ( 2). Possible values are: