Remove-WssMsoGroup
Removes a security group that is assigned to a user group.
Syntax
Remove-WssMsoGroup
[-WssGroupName] <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
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.
Examples
Example 1: Remove a security group
PS C:\> Remove-WssMSOGroup -WssGroupName "Admins"
This command removes the security group assigned to the user group named Admins.
1:
PS C:\>
Parameters
-Confirm
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 |
-Force
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 |
-WhatIf
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 |
-WssGroupName
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 |
Inputs
WssGroupName Type: System.String Description: local network account name of group
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for