Share via


CommitSCF Method in Class SMS_SiteControlFile

The CommitSCF WMI class method commits your site control file changes to the database.

The following syntax is simplified from MOF code and is intended to show you the definition of the method.

sint32     CommitSCF(
  [in] string SiteCode
);

Parameters

  • SiteCode
    Data type: string
    Qualifiers: In

    Site whose site control file you have changed.

Return Values

The CommitSCF method returns a sint32 that is always zero (0).

Remarks

Changes that you make to your in-memory copy of the site control file are not applied to the database until you call the CommitSCF method.

Although changes to a component item in the site control file may be immediate, there may be some delay before you see your changes applied to the components themselves. This delay depends on several factors. You should experience very little delay when you commit changes on the local server.

Most delays occur on remote updates where a site's current configuration and connectivity issues may affect the commit process. For example, the remote site may only accept updates during a certain window. This means the committed updates may not be realized until well after the commit process began. For more information on the Site Control Manager, see the SMS Administrator's Guide.

Note  The CommitSCF method replaces the Commit method from earlier releases.

Example Code

For an example that calls the CommitSCF method, see Managing Site Control Configuration.

See Also

Managing Site Control Configuration, Site Configuration Classes, SMS_SiteControlFile