Set-WssMsoGroupAssignment

Set-WssMsoGroupAssignment

Assigns a security group to a user group.

Syntax

Parameter Set: Default
Set-WssMsoGroupAssignment [-WssGroupName] <String> [-MsoId] <String> [ <CommonParameters>]

Detailed Description

The Set-WssMsoGroupAssignment cmdlet assigns a security group to a Windows Server Essentials user group.

Parameters

-MsoId<String>

Specifies an ID for a security group. The cmdlet assign the security group that you specify to a Windows Server Essentials user group.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-WssGroupName<String>

Specifies the name of a Windows Server Essentials user group. The cmdlet assigns a security group to the gets the user group that you specify.

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 group

Outputs

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

Examples

Example 1: Assign a security group

This command assigns the specified security group to the user group named Admins.

PS C:\> Set-WssMSOAssignedGroup -WssGroupName "Admins" -MsoId "d77e9419-2e1f-4080-ae7c-9b97c6caa681"
PS C:\> 

Remove-WssMsoGroupAssignment

Set-WssMsoUserAssignment