Add-WssMsoGroup

Add-WssMsoGroup

Adds a security group and assigns it to a user group.

Syntax

Parameter Set: Default
Add-WssMsoGroup [-WssGroupName] <String> [[-MsoGroupName] <String> ] [ <CommonParameters>]

Detailed Description

The Add-WssMsoGroup cmdlet adds a security group, and assigns that group to a Windows Server Essentials user group.

Parameters

-MsoGroupName<String>

Specifies a name for the security group.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-WssGroupName<String>

Specifies the name of a user group. The cmdlet assigns the security group to the user group that you specify. If you do not specify a name for the security group by using the MsoGroupName parameter, the cmdlet uses the value that you specify as the name for the security group.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    WssGroupName
    Type: System.String
    Description: local network account name of user group

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create a security group

This command creates a security group named Network Admins and associates it to the local network user group named Local Network Admins.

PS C:\> Add-WssMSOGroup - WssGroupName "Local Network Admins" -MsoGroupName "Network Admins"

Get-WssMsoGroup

Remove-WssMsoGroup