Skip to main content
SnapCenter 6.0 cmdlets

Add-SmGroup

Contributors

Adds an AD group or local group to SnapCenter.

Syntax

Add-SmGroup [-Domain]  <String>  [-Group]  <SmString>  [-RoleNames]  <SmString>

Detailed Description

Adds an Active Directory group or local group to SnapCenter.

Parameters

Name Description Required? Pipeline Input Default Value

Domain

The domain to which the group belongs to. Local group should skip this parameter.

false

true (ByPropertyName)

Group

Single group or list of groups belonging to the same domain or local host.

true

true (ByPropertyName)

RoleNames

Single or list of existing pre-canned or custom roles to which group should be added to. At least one role should be specified while adding the group.

true

true (ByPropertyName)

Examples

Example 1: Adding a single group

 Add-SmGroup -Group group1 -RoleNames role1,role2 -Domain domain1

Example 2: Adding multiple groups of same domain

 Add-SmGroup -Group group1,group2 -RoleNames role1 -Domain domain1

Example 3: Adding local group

 Add-SmGroup -Group LocalGroup1 -RoleNames role1