Remove-WssMsoGroupAssignment

Remove-WssMsoGroupAssignment

Removes the assignment of a security group to a user group.

Syntax

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

Detailed Description

The Remove-WssMsoGroupAssignment cmdlet removes the assignment of a security group to a Windows Server Essentials user group. This cmdlet does not remove the user group or the security group. After this cmdlet runs, the local group no longer syncs with the group. To remove a security group, use the Remove-WssMsoGroup cmdlet.

Parameters

-WssGroupName<String>

Specifies the name of a user group. The cmdlet removes the assignment of a security group for 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: Remove an assigned security group

This command removes the assignment to a security group for the user group named AllEmployee.

PS C:\> Clear-WssMSOAssignedGroup -WssGroupName "AllEmployee"
PS C:\> 

Set-WssMsoGroupAssignment

Remove-WssMsoUserAssignment