CmdID / PowerShell / Cmdlets / Set
Set-LocalGroup
Changes a local security group. PowerShell reference
From the PowerShell reference
6 parameters
Alias slg
What it does
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."IdentifyIts page in the reference: Set-LocalGroup.
Parameters
-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.