question

JoeKukla-5843 avatar image
0 Votes"
JoeKukla-5843 asked Crystal-MSFT commented

Enrolling Windows Device in Intune with PowerShell

Hello! I am trying to setup devices to enroll in Intune automatically from a PowerShell script. Is this possible? I started looking into it but the search results are cluttered with people trying to use PowerShell to control Intune.

We have new machines that need a PowerShell script ran for the first time setup, and if we could include Intune enrollment that would be awesome! We don't want the devices enrolled to Azure AD, only Intune device management.

Any help is super appreicated!

mem-intune-enrollment
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JoeKukla-5843, In fact, Intune integrates with Azure Active Directory (Azure AD) to control who has access and what they can access. So Azure AD is needed for Intune enrollment just as Jason mentioned. We can see more details in the following link:
https://docs.microsoft.com/en-us/mem/intune/fundamentals/what-is-intune

0 Votes 0 ·

@JoeKukla-5843, Hope things are going well. If there's anything else we can help, feel free to let us know.

,

0 Votes 0 ·

1 Answer

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered

We don't want the devices enrolled to Azure AD

On the terminology front, you don't enroll device to Azure AD, you join (or register) them.

Intune requires endpoints to be joined (or registered) to AAD. For new Windows endpoints, our (Microsoft's) strongly preferred path and engineering direction is for them to be AAD joined (AAD registration is meant only for BYOD scenarios).

Why do you want to avoid AAD?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.