Use msgraph to create an InTune group and add members with Powershell

$NewGroup_displayName = "AAD-Intune-Windows-Roger-test"$GroupOwner = 'Roger@.com' ============================================================================== Initial connections ============================================================================== Write-host 'Connect to MSGraph'Connect-MSGraph -ForceNonInteractive -Quiet # get an auth token for MSGraph Write-host 'Connect to MGGraph'Connect-MgGraph -nowelcome Write-Host 'Get my user object ID' # M$MyObjectid = (get-mguser -all -filter "Mail eq '$GroupOwner'").id ============================================================================== Create or locate the group ============================================================================== Write-Host 'Look for group'$newGroup = get-mggroup … Continue reading Use msgraph to create an InTune group and add members with Powershell