IUpdateServerConfiguration.Save Method ()
Applies To: Windows Server Update Services
Saves WSUS configuration information to the database.
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
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 .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 InvalidOperationException exception. You can implement retry logic to handle this exception or call GetUpdateServerConfigurationState before calling to determine if you can save configuration settings.while the background process is running, WSUS throws the
This operation requires WSUS Administrator privileges.