SMS_UpdatesAssignment 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_UpdatesAssignment Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a deployment.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.
Class SMS_UpdatesAssignment : SMS_CIAssignmentBaseClass
{
Boolean ApplyToSubTargets;
SInt32 AssignedCIs[];
SInt32 AssignmentAction;
String AssignmentDescription;
SInt32 AssignmentID;
String AssignmentName;
String AssignmentUniqueID;
Boolean ContainsExpiredUpdates;
DateTime CreationTime;
SInt32 DesiredConfigType;
Boolean DisableMomAlerts;
UInt32 DPLocality;
DateTime EnforcementDeadline;
String EvaluationSchedule;
DateTime ExpirationTime;
DateTime LastModificationTime;
UInt32 LegacyAdvertFlags;
Boolean LegacyCollectInventory;
String LegacyDependentProgram;
Boolean LegacyDeploymentEnabled;
String LegacyDeploymentSchedule;
UInt32 LegacyDPLocality;
Boolean LegacyForceReboot;
Boolean LegacyInstallAllOnDeadline;
SInt32 LegacyInstallAllowedWindow;
Boolean LegacyPostponeInstall;
UInt32 LegacyProgramFlags;
UInt32 LegacyRebootCountdown;
Boolean LegacySilentInstall;
UInt32 LocaleID;
Boolean LogComplianceToWinEvent;
SInt32 NonComplianceCriticality;
Boolean NotifyUser;
Boolean OverrideServiceWindows;
Boolean RaiseMomAlertsOnFailure;
Boolean ReadOnly;
Boolean RebootOutsideOfServiceWindows;
Boolean SendDetailedNonComplianceStatus;
String SourceSite;
DateTime StartTime;
UInt32 SuppressReboot;
String TargetCollectionID;
Boolean UseGMTTimes;
Boolean WoLEnabled;
};
Methods
The SMS_UpdatesAssignment class does not define any methods.
Properties
ApplyToSubTargets
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
AssignedCIs
Data type: SInt32 ArrayAccess type: Read/Write
Qualifiers: [not_null]
AssignmentAction
Data type: SInt32Access type: Read/Write
Qualifiers: [not_null]
See SMS_CIAssignmentBaseClass Server WMI Class.
For this class, the default value is APPLY (2).
AssignmentDescription
Data type: StringAccess type: Read/Write
Qualifiers: None
AssignmentID
Data type: SInt32Access type: Read/Write
Qualifiers: [key]
AssignmentName
Data type: StringAccess type: Read/Write
Qualifiers: [not_null]
AssignmentUniqueID
Data type: StringAccess type: Read-only
Qualifiers: [read, not_null]
ContainsExpiredUpdates
Data type: BooleanAccess type: Read-only
Qualifiers: [read, not_null]
CreationTime
Data type: DateTimeAccess type: Read-only
Qualifiers: [read, not_null]
DesiredConfigType
Data type: SInt32Access type: Read/Write
Qualifiers: [not_null]
See SMS_CIAssignmentBaseClass Server WMI Class.
For this class, the default value is REQUIRED (1).
DisableMomAlerts
Data type: BooleanAccess type: Read/Write
Qualifiers: None
DPLocality
Data type: UInt32Access type: Read/Write
Qualifiers: [not_null, bits]
See SMS_CIAssignmentBaseClass Server WMI Class.
For this class, the DPLocality property defaults to the flag combination DP_DOWNLOAD_FROM_LOCAL | DP_DOWNLOAD_FROM_REMOTE (0x50).
EnforcementDeadline
Data type: DateTimeAccess type: Read/Write
Qualifiers: None
The date and time to automatically install the software update. Set this property to zero if the update is optional. It must not be set to a null pointer.
EvaluationSchedule
Data type: StringAccess type: Read/Write
Qualifiers: None
ExpirationTime
Data type: DateTimeAccess type: Read/Write
Qualifiers: None
LastModificationTime
Data type: DateTimeAccess type: Read-only
Qualifiers: [read, not_null]
LegacyAdvertFlags
Data type: UInt32Access type: Read/Write
Qualifiers: [bits]
Flags indicating how the advertisement should be announced to the user of SMS 2003. Possible values are:
Bit Description 5
IMMEDIATE
8
ONSYSTEMSTARTUP
9
ONUSERLOGON
10
ONUSERLOGOFF
These flags must be coordinated with the flags specified in the ProgramFlags property of the advertised program. For example, if you set ONUSERLOGOFF, the NOUSERLOGGEDIN flag in the program must be set. If the flag settings do not match, the program is not advertised. For more information, see SMS_Program Server WMI Class.
Setting IMMEDIATE, ONUSERLOGON, or ONUSERLOGOFF or providing an AssignedSchedule value makes the advertised program mandatory. A mandatory program is run automatically after the client has received the advertisement. The client cannot reject or postpone the installation.
LegacyCollectInventory
Data type: BooleanAccess type: Read/Write
Qualifiers: [lazy]
true to trigger the inventory collection on SMS 2003. The default value is false.
LegacyDependentProgram
Data type: StringAccess type: Read/Write
Qualifiers: None
Formatted text string defining any program that should be run prior to the current program on SMS 2003. The default value is "".
The format for this property is defined as <PackageID>;;<ProgramName>. If the program is in the same package, simply specify ;;<ProgramName>.
The dependency is maintained only the first time that the program runs. After the program has run, the dependency is ignored. For example, you cannot create a recurring scheduled job for which the dependency is maintained for each program run.
LegacyDeploymentEnabled
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
true if the software updates deployment is enabled for SMS 2003 clients.
LegacyDeploymentSchedule
Data type: StringAccess type: Read/Write
Qualifiers: [lazy]
Advertisement schedule for SMS 2003 clients.
LegacyDPLocality
Data type: UInt32Access type: Read/Write
Qualifiers: [lazy, bits]
Flags that determine how the SMS 2003 client obtains content from distribution points, according to distribution point locality. Possible values are shown below. The default value is DP_RUN_FROM_LOCAL | DP_RUN_FROM_REMOTE (bits 3 and 7 or 0x88).
Bit Description 3
DP_RUN_FROM_LOCAL
4
DP_DOWNOLAD_FROM_LOCAL
5
DP_NO_REMOTE
6
DP_DOWNLOAD_FROM_REMOTE
7
DP_RUN_FROM_REMOTE
17
DP_NO_FALLBACK_UNPROTECTED
LegacyForceReboot
Data type: BooleanAccess type: Read/Write
Qualifiers: [lazy]
true (default) to force reboot for SMS 2003 clients, if required.
LegacyInstallAllOnDeadline
Data type: BooleanAccess type: Read/Write
Qualifiers: [lazy]
true (default) to install on SMS 2003 clients only the updates that meet the deadline.
LegacyInstallAllowedWindow
Data type: SInt32Access type: Read/Write
Qualifiers: [lazy]
Install window for updates on SMS 2003 clients.
LegacyPostponeInstall
Data type: BooleanAccess type: Read/Write
Qualifiers: [lazy]
true (default) to enable postponement of SMS 2003 installations.
Maps to /P.
LegacyProgramFlags
Data type: UInt32Access type: Read/Write
Qualifiers: [bits]
Flags defining the installation characteristics of the program for SMS 2003. Possible values are listed below. The default value is COUNTDOWN(10).
Bit Description 7
DEPENDANT_FORCE_RERUN
9
RUN_DEPENDANT_ALWAYS
10
COUNTDOWN
LegacyRebootCountdown
Data type: UInt32Access type: Read/Write
Qualifiers: [not_null]
Reboot countdown for SMS 2003. The default value is 0.
LegacySilentInstall
Data type: BooleanAccess type: Read/Write
Qualifiers: [lazy]
true for a silent installation for SMS 2003. The default value is false.
LocaleID
Data type: UInt32Access type: Read-only
Qualifiers: [read, not_null]
LogComplianceToWinEvent
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
NonComplianceCriticality
Data type: SInt32Access type: Read/Write
Qualifiers: None
NotifyUser
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
OverrideServiceWindows
Data type: BooleanAccess type: Read/Write
Qualifiers: None
RaiseMomAlertsOnFailure
Data type: BooleanAccess type: Read/Write
Qualifiers: None
ReadOnly
Data type: BooleanAccess type: Read-only
Qualifiers: [read, not_null]
The assignment is read-only.
RebootOutsideOfServiceWindows
Data type: BooleanAccess type: Read/Write
Qualifiers: None
SendDetailedNonComplianceStatus
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
SourceSite
Data type: StringAccess type: Read-only
Qualifiers: [read, not_null]
StartTime
Data type: DateTimeAccess type: Read/Write
Qualifiers: [not_null]
SuppressReboot
Data type: UInt32Access type: Read/Write
Qualifiers: [not_null, bits]
TargetCollectionID
Data type: StringAccess type: Read/Write
Qualifiers: [not_null]
UseGMTTimes
Data type: BooleanAccess type: Read/Write
Qualifiers: [not_null]
WoLEnabled
Data type: BooleanAccess type: Read/Write
Qualifiers: None
Remarks
Class qualifiers for this class include:
- Secured
For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.
After preparing the software updates to deploy, your application can use this class as described in How to Configure and Deploy Updates. After the application creates the deployment, Configuration Manager creates the corresponding policy in the database. The client polls the management point for new and changed properties and the download occurs when a request is detected.
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 Updates Server WMI Classes
Configuration Manager Software Updates
How to Configure and Deploy Updates