Share via


Administration.InsertComputerGroup Method

Adds a new computer group to MOM.

 public void InsertComputerGroup(
    String name,
    String description
);

Parameters

  • name
    The name for the new computer group.
  • description
    A description for the new computer group.

Exceptions

Exception Type Condition
System.ArgumentNullException A null reference (Nothing in Visual Basic) was used for the name parameter.
System.ArgumentOutOfRangeException The name argument is empty or it contains invalid characters, such as "(", ")", ",", "\", """, "'", or "--".
System.UnauthorizedAccessException The user does not have permissions for these objects.

Remarks

The MOM Operator console user interface does not support displaying console scopes and computer groups with the same name. When creating a new computer group, you should avoid using a name that matches the name of an existing console scope.

Requirements

Platforms: Requires Windows 2000 Server or later

Version: Requires MOM 2005 or later

Namespace: Microsoft.EnterpriseManagement.Mom

Assembly: Microsoft.Mom.Sdk (in Microsoft.Mom.Sdk.dll)

See Also

Administration Class | Administration Members | ComputerGroup.Name Property | ConsoleScope.Name Property