Change a local security group.

      Set-Localgroup -Description String
         { [-Name] String | [-InputObject] LocalGroup | [-SID] SecurityIdentifier }
            [-WhatIf] [-Confirm] [CommonParameters]

       Set a comment for the group. The maximum length is 48 characters.

       The security group object to be changed. To obtain a security group, use Get-LocalGroup.

       The name of the security group to be changed.

       The security ID (SID) of the security group to be changed.

       Prompt for confirmation before executing the command.

       Describe what would happen if you executed the command without actually executing the command.

You can pipe a security group, string or a SID to this cmdlet.


Change the description of the local security group called 'SecurityGroup64':

PS C:\> Set-LocalGroup -Name "SecurityGroup64" -Description "We know what we are, but know not what we may be."

“Three groups spend other people's money: children, thieves, politicians. All three need supervision” ~Dick Armey

Related PowerShell Cmdlets

Add-LocalGroupMember - Add members to a local group.
Get-LocalGroup - Get the local security groups.
Remove-LocalGroup - Remove a local group.
Rename-LocalGroup - Rename a local group.
Set-ADGroup - Modify an Active Directory group.
New-adUser - Create a new AD user account.
New-LocalUser - Add a local user account.

Copyright © 1999-2024
Some rights reserved