CmdID / PowerShell / Cmdlets / New
New-LocalGroup
Creates a local security group. PowerShell reference
From the PowerShell reference
4 parameters
Alias nlg
What it does
Creates a local security group. The New-LocalGroup cmdlet creates a local security group in the Security Account Manager. NOTE: The Microsoft.PowerShell.LocalAccounts module is not available in 32-bit PowerShell on a 64-bit system.
New-LocalGroup [-Description <String>] [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Create a security group
New-LocalGroup -Name "SecurityGroup04"IdentifyIts page in the reference: New-LocalGroup.
Parameters
-DescriptionSpecifies a comment for the group. The maximum length is 256 characters.-NameSpecifies a name for the group. The maximum length is 48 characters.-ConfirmPrompts you for confirmation before running the cmdlet.-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.