Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[Set is no longer supported. Also, starting with Windows 10 calls to Get always return VARIANT_TRUE (include recommended updates). ]
Gets and sets a Boolean value that indicates whether to include optional or recommended updates when a search for updates and installation of updates is performed.
This property is read/write.
Syntax
HRESULT put_IncludeRecommendedUpdates(
[in] VARIANT_BOOL value
);
HRESULT get_IncludeRecommendedUpdates(
[out] VARIANT_BOOL retval
);
Property value
Specifies whether Automatic Updates will include optional or recommended updates during a search and installation of updates operation.
VARIANT_TRUE if Automatic Updates will include optional updates. Otherwise, VARIANT_FALSE if Automatic Updates will include only recommended updates.
Error codes
Returns S_OK if successful. Otherwise, returns a COM or Windows error code.
Remarks
Only administrators can set this property.
The caller can modify the settings in the IAutomaticUpdatesSettings2 interface only if the ReadOnly property is VARIANT_TRUE. The ReadOnly property may change after the Refresh method is called.
Requirements
Minimum supported client |
Windows XP, Windows 2000 Professional with SP3 [desktop apps only] |
Minimum supported server |
Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only] |
End of client support |
Windows 10 |
End of server support |
Windows Server 2016 |
Header |
Wuapi.h |
IDL |
Wuapi.idl |
Library |
Wuguid.lib |
DLL |
Wuapi.dll |