Remove-WssMsoGroup
Removes a security group that is assigned to a user group.
Remove-WssMsoGroup
[-WssGroupName] <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Remove-WssMsoGroup cmdlet removes a Windows aad_1 security group that is assigned to a Windows Server Essentials user group. This cmdlet removes both the assignment and the security group itself from aad_2. 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.
PS C:\> Remove-WssMSOGroup -WssGroupName "Admins"
This command removes the security group assigned to the user group named Admins.
PS C:\>
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of a wseblue_2 user group. The cmdlet removes the security group assigned to the user group that you specify.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
WssGroupName Type: System.String Description: local network account name of group