Share via


SetReplicationSettings method of the MSFT_SMReplicationGroup class

Updates the replication settings for a replication group.

Syntax

UInt32 SetReplicationSettings(
  [in]            MSFT_SMReplicationSettings ReplicationSettings,
  [in, optional]  String                     username,
  [in, optional]  String                     password,
  [out]           MSFT_SMJob             REF Job,
  [out, optional] MSFT_SMExtendedStatus      ExtendedStatus
);

Parameters

ReplicationSettings [in]

The objects that represents the new replication settings to apply to the replication group.

username [in, optional]

The username used to authenticate the SMI-S provider.

password [in, optional]

The password used to authenticate the SMI-S provider.

Job [out]

If this operation is asynchronous, when this method returns, this parameter contains a reference to the object that represents the job; otherwise this parameter is set to NULL.

ExtendedStatus [out, optional]

When this method returns, this parameter contains a MSFT_SMExtendedStatus object that contains detailed status information about the results of this operation.

Return value

Returns "0" on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMReplicationGroup