ServerEventExpirationTime Property

IUpdateServerConfiguration.ServerEventExpirationTime Property

Gets or sets the period of time that server events are retained before being removed from the database.

Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

TimeSpan ServerEventExpirationTime { get; set; }
/** @property */
TimeSpan get_ServerEventExpirationTime ()

/** @property */
void set_ServerEventExpirationTime (TimeSpan value)

function get ServerEventExpirationTime () : TimeSpan

function set ServerEventExpirationTime (value : TimeSpan)

Property Value

The period of time that server events are retained before being removed from the database. The minimum unit of time is one day; fractions of a day are truncated (the property returns only the day value). The maximum unit of time is 365 days. The default is 90 days.

Exception typeCondition

The time span cannot be less than zero.

WSUS scans for server events to remove when it receives a server event and ExpiredEventDetectionPeriod has elapsed.

To remove events for a specific update, call PurgeAssociatedReportingEvents.

To view server events, call one of the GetUpdateEventHistory overloads. The collection returns both client and server events. Use WsusEventSource to determine the event's origin.

WSUS uses subscription server events to generate synchronization history. The synchronization history is lost when subscription server events are removed.

Note that you can exceed the size of the database if there is a high volume of server events and you specify large value for ServerEventExpirationTime.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
© 2016 Microsoft