Remove-WssMsoGroup

Remove-WssMsoGroup

Removes a security group that is assigned to a user group.

Syntax

Parameter Set: Default
Remove-WssMsoGroup [-WssGroupName] <String> [[-Force]] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-WssMsoGroup cmdlet removes a Windows security group that is assigned to a Windows Server Essentials user group. This cmdlet removes both the assignment and the security group itself from . To remove just the assignment, use the Remove-WssMsoGroupAssignment cmdlet. If the group that is specified is not assigned to a Windows Server Essentials user group, no error is generated, but nothing is done to the group.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WssGroupName<String>

Specifies the name of a user group. The cmdlet removes the security group assigned to 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

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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 a security group

This command removes the security group assigned to the user group named Admins.

PS C:\> Remove-WssMSOGroup -WssGroupName "Admins"
PS C:\> 

Add-WssMsoGroup

Get-WssMsoGroup

Remove-WssMsoGroupAssignment