For new Intune admins, like myself who struggled a lot with Intune, know that some PCs will register fine, but I found that about half of ours required the registry modification that Tareq Baji above gave.
So, here's my step-by-step...
- The user must have Microsoft 365 Business Premium, so that on admin.microsoft.com, under their Apps, “Microsoft Intune” is selected.
- On user laptop: Launch Microsoft STORE > search and install “COMPANY PORTAL” by Microsoft
- Tap WINDOWS > run COMPANY PORTAL and login as user of PC > [x]ALLOW MY ORGANIZATION TO MANAGE MY DEVICE > [DONE]
- click [THIS DEVICE HASN’T BEEN SET UP FOR CORPORATE USE YET] > it shows ! by “connect this device to work” [NEXT] > [CONNECT] > [NEXT] on the setup work or school page > ..”it’ll take a few minutes to connect to your school or workplace…” [GOT IT] ..It took ~5 minutes for mine to sign in all the way.
If it says “THIS DEVICE HASN'T BEEN SET UP FOR CORPORATE USE YET. SELECT THIS MESSAGE TO BEGIN SETUP" then chances are that it won’t work when you click to sign in. In my case, when I clicked it, I got error “YOUR DEVICE IS ALREADY BEING MANAGED BY AN ORGANIZATION” and indeed I see the device is already existing in Azure/Entra (ENTRA.MICROSOFT.COM > left pane DEVICES / ALL DEVICES).
In this case, you will need to do the following Registry modifications as per Tareq Baji above:
- REGEDIT >> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\ and Control F to search for all “EnrollmentState” entries under this “Enrollments” branch and set it from 1 to 4 (there will be 3 or 4 “EnrollmentState” you won’t be allowed to change)
- Go to admin site ENTRA.MICROSOFT.COM >DEVICES > ALL DEVICES > and delete the PC you're working on, if it's there.
- RESTART the PC and sign in again.
- Tap windows, type in CMD, right-click CMD and choose RUN AS ADMINISTRATOR > ..type in.. DSREGCMD /DEBUG /LEAVE > ..wait a few seconds.. > DSREGCMD /FORCERECOVERY > ..sign in.. it’ll spin for a minute > ..this adds the PC back to Azure/Entra -- If you want to check, go to admin site Entra.Microsoft.com > left pane Devices / All Devices ..and it should be there, but it takes ~2 minutes before it shows “MDM=Microsoft Intune” and “Security settings management=Microsoft Intune”
- Click the taskbar’s Windows icon, then click the top search bar and if it says to verify your login, click your name & it should auto-login.
- Now run COMPANY PORTAL and it should sign itself in as your username, and under left-pane HOME, under YOUR DEVICES, your PC name should be there.
- For rounding out things, you should launch Edge and click the top left Avatar and it should show “sync is on.” Also launch an MS Office product like MS Word (winword.exe) to ensure that it auto-logs in with your username.
Note that there is a default limit of 5 enrollments per user ID. In my case, I prepare PCs without a hired user yet, so I have a few test IDs with Windows Licensing, but I had to increase from 5 to 15: go to admin site INTUNE.MICROSOFT.COM > left pane ALL SERVICES > middle row DEVICE ONBOARDING / ENROLLMENT > right row DEVICE LIMIT RESTRICTION > “ALL USERS AND ALL DEVICES” > Device Limit: ..click the # show, probably 5 > Device Limit EDIT > DEVICE LIMIT: 15 [REVIEW + SAVE] > [SAVE]