Partager via


Remove method of the MSFT_SMProvider class

Removes the provider from the cache.

Syntax

Uint32 Remove(
  [in]            String                username,
  [in]            String                password,
  [in, optional]  Boolean               force,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

username [in]

The username to use to authenticate the SMI-S provider. If this parameter is not set, the storage service will attempt to retrieve the credentials from the configuration provider.

password [in]

The password to use to authenticate the SMI-S provider. If this parameter is not set, the storage service will attempt to retrieve the credentials from the configuration provider.

force [in, optional]

Indicates whether this method uses the default confirmation prompt before performing the operation. True to use the default confirmation prompt, otherwise false. The default value for this parameter is True.

Windows Server 2012 R2 and Windows Server 2012: This parameter is unavailable prior to Windows Server 2016.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

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

Requirements

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

See also

MSFT_SMProvider

Windows Storage Management WMI Provider