Follow

Follow
Fixing Windows clients Intune automatic enrollment issues using PowerShell

Fixing Windows clients Intune automatic enrollment issues using PowerShell

Ondrej Sebela's photo
Ondrej Sebela
·Oct 13, 2021·

2 min read

If you are using automatic enrollment of your clients to Intune (via GPO or SCCM), you've probably encountered a situation when some of the clients failed to enroll. You could find this out by accident or by using my Intune clients report.

And I am talking about situations when all prerequisites are met and 95% of your clients have enrolled without any issues 😀.

I was facing such issue for several weeks now, but finally, I manage to create a working PowerShell function Reset-IntuneEnrollment that solves all enrollment issues (at least for us). Hopefully, it will help you too 👍

Reset-IntuneEnrollment function will:

  • check actual device Intune status
  • invoke Hybrid AzureAD join reset
  • remove device record(s) from Intune
  • remove local client Intune enrollment data
  • invoke Intune re-enrollment

Btw this DSRegTool PowerShell script can help you too diagnose your registration/enrollment problems.


Prerequisites

These custom functions can be used on their own and can be helpful too!


Usage

Result of calling Reset-IntuneEnrollment function can look like this: image.png

Enjoy 👍

Did you find this article valuable?

Support Ondrej Sebela by becoming a sponsor. Any amount is appreciated!

See recent sponsors Learn more about Hashnode Sponsors
 
Share this