Uploaded July 2025 | Updated September 2026, 2 weeks ago
How to Add Microsoft Intune Devices to an Entra ID Security Group using PowerShell Script
Learn how to efficiently add Microsoft Intune devices to a security group using a powerful and simple PowerShell script. This video tutorial provides a step-by-step guide on automating the process, offering a faster alternative to manual GUI operations in the Intune portal. Sujin Nelladath, a Microsoft Graph MVP, walks you through the PowerShell script, explains each section, and demonstrates its execution for seamless device management.
In this video, you will learn:
Why automate adding devices to security groups.
Detailed explanation of the PowerShell script.
How to connect to Microsoft Graph and set necessary permissions.
Functions to get Group ID and Device ID dynamically.
Adding devices to a security group using PowerShell's POST method.
Live demonstration of the script in Visual Studio Code.
Verification of device addition in the Microsoft Intune portal.
Timeline:
0:00 - Introduction to adding Intune devices to a security group using PowerShell.
0:40 - Introduction to the presenter, Sujin Nelladath.
0:57 - Navigating to the Intune Portal and demonstrating current group status (no members).
2:04 - In-depth explanation of the PowerShell script (Add-IntuneDevicetoEntraGroup.ps1).
2:08 - Setting Execution Policy and connecting to Microsoft Graph.
2:57 - Function to get Group ID by name.
3:26 - Function to get Device ID by name.
4:44 - Prompting user for Group Name and handling group not found.
5:02 - Prompting user for Device Name and handling device not found.
5:48 - Adding device to the specified group.
10:39 - Executing the PowerShell script in Visual Studio Code.
11:23 - Providing the Intune Group Name in the script execution.
12:06 - Providing the Device Name in the script execution.
12:21 - Confirmation of successful device addition via script output.
12:42 - Verifying the newly added device in the Intune Portal's group members.
13:28 - Conclusion and thank you.
Useful Resources:
Don't forget to Like, Share, and Subscribe for more helpful tutorials on Microsoft Intune and device management!
#MicrosoftIntune #AzureAD #PowerShell #DeviceManagement #SecurityGroup #Automation #ITAdmin #TechTutorial #MicrosoftGraph #IntuneTips
=======
More Blog posts related to SCCM/Intune/Windows 11/Cloud PC/AVD/Hyper-V/Cloud/IT Pro/Azure -
✔ anoopcnair.com/windows-365
👉 Stay Connected - howtomanagedevices.com/stay-connected 👉 howtomanagedevices.com/sccm/1791/how-to-manage-devices-live-digital-events-weekend-learning
#CloudPC #Windows365 #W365
howtomanagedevices.com
Learn SCCM Read anoopcnair.com/sccm
anoopcnair.com/learn-sccm-intune
Learn Intune Read - anoopcnair.com/intune
anoopcnair.com/learn-microsoft-intune
Learn Windows 10 Read - anoopcnair.com/windows-10
Learn Hyper-V Read - anoopcnair.com/hyperv-2
Learn About Cloud Read - anoopcnair.com/cloud
Learn about Azure Read - anoopcnair.com/cloud/azure
Learn About IT Pros Events - anoopcnair.com/itpro
Learn about me - anoopcnair.com/about
#SCCM #ConfigMgr #SCCMVideos #SCCMTutorials #SCCMStudyVideos #SCCMFreeTraining #SCCMTraining #HowtoManageDevices
#Intune #MicrosoftIntune #IntuneVideos #IntuneTutorials #IntuneGuide #IntuneStudy #MSIntune #IntuneTraining #HowtoManageDevices
How to Add Microsoft Intune Devices to an Entra ID Security Group using PowerShell Script
Learn how to efficiently add Microsoft Intune devices to a security group using a powerful and simple PowerShell script. This video tutorial provides a step-by-step guide on automating the process, offering a faster alternative to manual GUI operations in the Intune portal. Sujin Nelladath, a Microsoft Graph MVP, walks you through the PowerShell script, explains each section, and demonstrates its execution for seamless device management.
In this video, you will learn:
Why automate adding devices to security groups.
Detailed explanation of the PowerShell script.
How to connect to Microsoft Graph and set necessary permissions.
Functions to get Group ID and Device ID dynamically.
Adding devices to a security group using PowerShell's POST method.
Live demonstration of the script in Visual Studio Code.
Verification of device addition in the Microsoft Intune portal.
Timeline:
0:00 - Introduction to adding Intune devices to a security group using PowerShell.
0:40 - Introduction to the presenter, Sujin Nelladath.
0:57 - Navigating to the Intune Portal and demonstrating current group status (no members).
2:04 - In-depth explanation of the PowerShell script (Add-IntuneDevicetoEntraGroup.ps1).
2:08 - Setting Execution Policy and connecting to Microsoft Graph.
2:57 - Function to get Group ID by name.
3:26 - Function to get Device ID by name.
4:44 - Prompting user for Group Name and handling group not found.
5:02 - Prompting user for Device Name and handling device not found.
5:48 - Adding device to the specified group.
10:39 - Executing the PowerShell script in Visual Studio Code.
11:23 - Providing the Intune Group Name in the script execution.
12:06 - Providing the Device Name in the script execution.
12:21 - Confirmation of successful device addition via script output.
12:42 - Verifying the newly added device in the Intune Portal's group members.
13:28 - Conclusion and thank you.
Useful Resources:
Don't forget to Like, Share, and Subscribe for more helpful tutorials on Microsoft Intune and device management!
#MicrosoftIntune #AzureAD #PowerShell #DeviceManagement #SecurityGroup #Automation #ITAdmin #TechTutorial #MicrosoftGraph #IntuneTips
=======
More Blog posts related to SCCM/Intune/Windows 11/Cloud PC/AVD/Hyper-V/Cloud/IT Pro/Azure -
✔ anoopcnair.com/windows-365
👉 Stay Connected - howtomanagedevices.com/stay-connected 👉 howtomanagedevices.com/sccm/1791/how-to-manage-devices-live-digital-events-weekend-learning
#CloudPC #Windows365 #W365
howtomanagedevices.com
Learn SCCM Read anoopcnair.com/sccm
anoopcnair.com/learn-sccm-intune
Learn Intune Read - anoopcnair.com/intune
anoopcnair.com/learn-microsoft-intune
Learn Windows 10 Read - anoopcnair.com/windows-10
Learn Hyper-V Read - anoopcnair.com/hyperv-2
Learn About Cloud Read - anoopcnair.com/cloud
Learn about Azure Read - anoopcnair.com/cloud/azure
Learn About IT Pros Events - anoopcnair.com/itpro
Learn about me - anoopcnair.com/about
#SCCM #ConfigMgr #SCCMVideos #SCCMTutorials #SCCMStudyVideos #SCCMFreeTraining #SCCMTraining #HowtoManageDevices
#Intune #MicrosoftIntune #IntuneVideos #IntuneTutorials #IntuneGuide #IntuneStudy #MSIntune #IntuneTraining #HowtoManageDevices










