New-LKGroup
Creates a new Entra ID security group for Intune.
Syntax
New-LKGroup
-Name <String>
[-Description <String>]
[-GroupType <String>]
[-WhatIf] [-Confirm]
[<CommonParameters>]
Parameters
-Name
| Attribute | Value |
| Type | String |
| Required | Yes |
-Description
| Attribute | Value |
| Type | String |
| Default | (empty) |
-GroupType
| Attribute | Value |
| Type | String |
| Default | Device |
| Valid values | Device, User |
-WhatIf
Shows what would happen without performing the action.
| Attribute | Value |
| Type | SwitchParameter |
-Confirm
Prompts for confirmation before performing the action.
| Attribute | Value |
| Type | SwitchParameter |
Outputs
| Property | Type | Description |
| Id | String | New group GUID |
| Name | String | Display name |
| Description | String | Group description |
| GroupType | String | Security group type |
| MembershipType | String | Assigned |
| MembershipRule | String | null |
Examples
Example 1 - Device group
New-LKGroup -Name 'SG-Intune-TestDevices' -Description 'Test device group'
Example 2 - User group
New-LKGroup -Name 'SG-Intune-TestUsers' -Description 'Test users' -GroupType User