Partager via


SetNotification method of the Win32_WindowsProductActivation class

The SetNotification WMI class method enables or disables the display of notification reminders (message balloons) and the activation icon in the notification tray.

Calling this method has no effect on the length of the activation grace period nor does it affect whether system activation is required. If activation is not required, or if activation is not pending, calling this method also has no effect.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

uint32 SetNotification(
  [in] uint32 Enable
);

Parameters

Enable [in]

If not equal to 0 (zero) and activation is required, notification reminders are enabled and the activation icon appears in the notification tray. If 0 (zero), notification reminders and the activation icon are disabled. Note that notifications are enabled by default. For more information, see the following Remarks section.

Remarks

Enabling or disabling notifications does not affect logon reminders, which begin 7 (seven) days before the activation period expires. Enabling or disabling notifications also does not affect event log reminders.

Note

If you disable notification reminders, you must re-enable them unless you are certain that they will no longer be needed. A user who has not activated a product before the activation grace period expires could be locked out when he or she attempts to log on after the grace period has expired.

If you use drive imaging to replicate hard disk drives, you must ensure that the notification state is correct prior to imaging. If you run the sysprep command or the riprep command prior to drive imaging, it enables notification reminders, which is the default setting.

This method was added to support automated deployment because automated activation may not succeed on the first attempt. The unexpected appearance of notification reminders in the notification tray can be confusing to users.

Windows Product Activation is not available on the Itanium-based versions of the Windows operating system.

Requirements

Minimum supported client
Windows XP
Minimum supported server
Windows Server 2003
End of client support
Windows XP
End of server support
Windows Server 2003 R2
Namespace
Root\CIMV2
MOF
Licwmi.mof
DLL
Licwmi.dll

See also

Win32_WindowsProductActivation

Windows Product Activation Provider