Compartilhar via


MSFT_SMStorageGroup class

Represents a storage group.

Windows Server 2012 R2 and Windows Server 2012: This class does not inherit from MSFT_SMStorageObject before Windows Server 2016.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("WMIStorage"), AMENDMENT]
class MSFT_SMStorageGroup : MSFT_SMStorageObject
{
  String ObjectId;
  String Identifier;
  String Name;
  String DisplayName;
};

Members

The MSFT_SMStorageGroup class has these types of members:

Methods

The MSFT_SMStorageGroup class has these methods.

Method Description
AddInitiator Adds an initiator ID to a storage group.
AddInitiators Adds initiator IDs to a storage group.
AddStorageVolumes Adds storage volumes to a storage group.
AddTargetPorts Adds target ports to a storage group.
Delete Deletes a storage group.
RemoveInitiators Removes the specified initiators from the storage group.
RemoveStorageVolumes Removes the specified logical units from the storage group.
RemoveTargetPorts Removes the specified target ports from the storage group.
Rename Renames a storage group.

Properties

The MSFT_SMStorageGroup class has these properties.

DisplayName

Data type: String

Access type: Read-only

The user-friendly name of the storage group.

Identifier

Data type: String

Access type: Read-only

Qualifiers: Required

The ID of the logical instance of the object. This ID must be unique within the scope of the storage system.

This property is inherited from MSFT_SMStorageObject.

Name

Data type: String

Access type: Read-only

The system defined name of the storage group.

ObjectId

Data type: String

Access type: Read-only

Qualifiers: Key, Required

The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.

This property is inherited from MSFT_SMStorageObject.

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_SMStorageObject

Windows Storage Management WMI Provider