CmdID

CmdID / PowerShell / Cmdlets / Set

Set-LocalGroup

Changes a local security group. PowerShell reference

From the PowerShell reference 6 parameters Alias slg

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Changes a local security group. The Set-LocalGroup cmdlet changes a local security group.

Set-LocalGroup -Description <String> [-InputObject] <LocalGroup> [-WhatIf] [-Confirm] [<CommonParameters>]
Set-LocalGroup -Description <String> [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Set-LocalGroup -Description <String> [-SID] <SecurityIdentifier> [-WhatIf] [-Confirm] [<CommonParameters>]

Change a group description

Set-LocalGroup -Name "SecurityGroup04" -Description "This is a sample description."Identify

Its page in the reference: Set-LocalGroup.

Parameters

6 in the PowerShell reference
-DescriptionSpecifies a comment for the group. The maximum length is 48 characters.
-InputObjectSpecifies the security group that this cmdlet changes. To obtain a security group, use the Get-LocalGroup cmdlet.
-NameSpecifies the name of the security group that this cmdlet changes.
-SIDSpecifies the security ID (SID) of the security group that this cmdlet changes.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.