IUpdateServerConfiguration.Save Method ()

Saves WSUS configuration information to the database.

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

void Save ()
void Save ()
function Save ()

Exception typeCondition

Thrown for any of the following reasons:


Thrown for any of the following reasons:

When you call GetConfiguration, you will receive a copy of the configuration information that is currently saved in the WSUS database. Changes that you make to the configuration information are made only to your local copy. To make your changes visible to other application and to the WSUS server, call Save.WSUS contains configuration information from the last application to save changes.

Changes to some configuration settings can cause WSUS to start a background process, which can prevent other processes from saving configuration settings (the process can run for up to three minutes). If you call Save while the background process is running, WSUS throws the InvalidOperationException exception. You can implement retry logic to handle this exception or call GetUpdateServerConfigurationState before calling Save to determine if you can save configuration settings.

This operation requires WSUS Administrator privileges.

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
© 2015 Microsoft