IAutomaticUpdates Interface

Expand
1 out of 1 rated this helpful Rate this topic

IAutomaticUpdates Interface

Contains the functionality of Automatic Updates.

Members

The IAutomaticUpdates interface inherits from the IDispatch interface. IAutomaticUpdates also has the following types of members:

Methods

The IAutomaticUpdates interface has the following methods.

MethodDescription
DetectNow

Begins automatic updating if it has not already started.

EnableService

Enables all the components that Automatic Updates requires.

Pause

Pauses automatic updating.

Resume

Restarts automatic updating if it is paused.

ShowSettingsDialog

Displays a dialog box that contains settings for Automatic Updates.

 

Properties

The IAutomaticUpdates interface has the following properties.

PropertyAccess typeDescription

ServiceEnabled

Read-only

Gets a Boolean value that indicates whether all the components that Automatic Updates requires are available.

Settings

Read-only

Gets the configuration settings for Automatic Updates.

 

Remarks

You can create an instance of this interface by using the AutomaticUpdates coclass. Use the Microsoft.Update.AutoUpdate program identifier to create the object.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

IID

IID_IAutomaticUpdates is defined as 673425BF-C082-4C7C-BDFD-569464B8E0CE

See Also

IAutomaticUpdates2

 

 

Send comments about this topic to Microsoft

Build date: 7/7/2011

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
PowerShell
Here is a PowerShell script that will force the Windows Update agent to detect updates against the Microsoft Update servers. It will override any GPO settings in place, restart the Windows Update service, and force an update detection via the Windows Update Agent COM API. Remove-Item -Path HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinue; Stop-Service -Name wuauserv; Start-Service -Name wuauserv; (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow();
12/14/2011
vb.net
<ComImport(), Guid("673425BF-C082-4C7C-BDFD-569464B8E0CE"), TypeLibType(CShort(&H10C0))> Public Interface IAutomaticUpdates
<DispId(&H60020001)> Sub DetectNow()
<DispId(&H60020002)> Sub Pause()
<DispId(&H60020003)> Sub [Resume]()
<DispId(&H60020004)> Sub ShowSettingsDialog()
<DispId(&H60020005)> ReadOnly Property Settings() As <MarshalAs(UnmanagedType.Interface)> IAutomaticUpdatesSettings
<DispId(&H60020006)> ReadOnly Property ServiceEnabled() As Boolean
<DispId(&H60020007)> Sub EnableService()
End Interface
5/4/2009